Open Bug 1665362 Opened 4 years ago Updated 4 years ago

firefox check invalid checkbox when uses same name

Categories

(Core :: DOM: Core & HTML, defect, P3)

80 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: svecpetr, Unassigned, NeedInfo)

Details

Attachments

(1 file)

Attached file bug.html

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

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Kagami, perhaps you're interested in this, since you were dealing with checked handling recently?

Severity: -- → S3
Flags: needinfo?(krosylight)
Priority: -- → P3

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?

Flags: needinfo?(krosylight) → needinfo?(svecpetr)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: