Closed Bug 1837773 Opened 1 years ago Closed 2 months ago

select.namedItem("") should return null, not one of the select's options

Categories

(Core :: DOM: Forms, defect)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: twisniewski, Assigned: psychpsyo)

References

()

Details

(Keywords: good-first-bug)

Attachments

(2 files)

This seems minor, but other browsers pass this test, and it's the last test we are failing in the html semantics/select element WPTs (which Safari now fully passes), so wIth luck it might just be a quick win to fix it.

Summary: select[""] should return null, not one of the select's options → select.namedItem("") should return null, not one of the select's options
Assignee: nobody → me
Status: NEW → ASSIGNED

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: me → nobody
Status: ASSIGNED → NEW

I am working on this.

It used to not return null if there was an option with and id of "".

This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1837773

Assignee: nobody → psychpsyo
Status: NEW → ASSIGNED
Pushed by afarre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52b8d9699529 Make select.namedItem("") return null r=farre
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: