JS Console error:
Incorrect use of <label for=FORM_ELEMENT>
Here is the HTML output that generates described JS error:
<audio id="audiofield-audio-player-item-gaaqoo0zf8n0y2fz" preload="none" controls="">
<source src="https://mysite.com/some.mp3" type="audio/mpeg">
</audio>
<label for="audiofield-audio-player-item-gaaqoo0zf8n0y2fz">Some Label</label>From HTML documentation:
<label>'s label form controls like <input>, or <select>.
They can't be used to label arbitrary elements like <audio>.
Issue fork audiofield-3374702
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
devad commentedComment #3
devad commentedComment #4
devad commentedComment #5
devad commentedComment #8
astonvictor commentedyeah,
I was able to reproduce the bug in the console.
I replaced all label tags with a regular p tag with a 'description' class.
I also found that there are a lot of strings that don't use
|tfilter to translate strings in templates. So, I fixed it as well.thanks
Comment #10
astonvictor commentedmerged to dev version
Comment #12
devad commentedThanks!