Incorrect use of label HTML element

Created on 14 July 2023, over 1 year ago

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>.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇭🇷Croatia devad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024