select.namedItem("") should return null, not one of the select's options
Categories
(Core :: DOM: Forms, defect)
Tracking
()
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.
Updated•1 years ago
|
Comment 1•1 years ago
|
||
Relevant code are in https://searchfox.org/mozilla-central/rev/d307d4d9f06dab6d16e963a4318e5e8ff4899141/dom/html/HTMLOptionsCollection.cpp#145-161.
Comment 2•1 years ago
|
||
This updates the named getter implementation to match the spec.
See: https://dom.spec.whatwg.org/#dom-htmlcollection-nameditem-key
Updated•1 years ago
|
Comment 3•1 year ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
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
Updated•3 months ago
|
Comment 7•2 months ago
|
||
bugherder |
Description
•