firefox check invalid checkbox when uses same name
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: svecpetr, Unassigned, NeedInfo)
Details
Attachments
(1 file)
707 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
execute this HTML code
Firefox show checked this checbox <input type="checkbox" id="uokr" name="uo[]" value="kr"> <label for="uokr">Krajské ředitelství</label> <br>
but in html is checked this <input type="checkbox" id="uopa" name="uo[]" value="pa" checked="checked"> <label for="uopa">ÚO Pardubice</label> <br>
<input type="checkbox" id="uocr" name="uo[]" value="cr"> <label for="uocr">ÚO Chrudim</label> <br>
and finally in html is checked this one checkbox too <input type="checkbox" id="uosy" name="uo[]" value="sy" checked="checked"> <label for="uosy">ÚO Svitavy</label> <br>
<input type="checkbox" id="uouo" name="uo[]" value="uo"> <label for="uouo">ÚO Ústí nad Orlicí</label>
Actual results:
Firefox select (checked) first checkbox input
but this one has no checked atribut
Expected results:
two checkboxes that have atribute checked and are not checked
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Kagami, perhaps you're interested in this, since you were dealing with checked handling recently?
Comment 2•4 years ago
•
|
||
I'm not sure I follow the description. Do you mean that the first checkbox (id=uokr) is visually checked but without checked
attribute? If then I can't reproduce this on Firefox 77, 78, 80, nor on Nightly. Could you hard-refresh the page by pressing Control+F5 and see if it still happens?
Description
•