[wpt-sync] Sync PR 41749 - Fix select.add() with optgroups
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41749 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41749
Details from upstream follow.
Joey Arhar <jarhar@chromium.org> wrote:
Fix select.add() with optgroups
The \<select>'s element's add() method allows you to specify an index to
insert the new \<option> element before. However, if that target place is
inside an \<optgroup>, this method throw an exception. This patch fixes
this by calling InsertBefore on the \<optgroup> instead of the \<option>.
Firefox works the same way.Fixed: 1477785
Change-Id: I0215c82aeee800b1fe7bef2ea0a88f70d0d68b06Reviewed-on: https://chromium-review.googlesource.com/4833609
WPT-Export-Revision: 356b7e578b6c02c67a0fe1c2a8ed5ebdda76135d
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
PASS
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
FAIL
: 1
Links
Comment 4•1 year ago
|
||
bugherder |
Description
•