Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 71fdfc0b942fc5eb8547d2963c0325dd6db46d08
https://github.com/WebKit/WebKit/commit/71fdfc0b942fc5eb8547d2963c0325dd6db46d08
Author: Anne van Kesteren <[email protected]>
Date: 2025-10-29 (Wed, 29 Oct 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/nested-options.tenative-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/nested-options.tenative.html
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/option-disabled-optgroup-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/option-form-ancestor-select-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/option-list-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/select-options-id-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/select-value-selectedOption-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-selectedOptions-nesting.window-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-selectedOptions-nesting.window.html
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-selectedOptions-nesting.window.js
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-value-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/w3c-import.log
M Source/WebCore/html/GenericCachedHTMLCollection.cpp
M Source/WebCore/html/HTMLHRElement.cpp
M Source/WebCore/html/HTMLHRElement.h
M Source/WebCore/html/HTMLOptGroupElement.cpp
M Source/WebCore/html/HTMLOptGroupElement.h
M Source/WebCore/html/HTMLOptionElement.cpp
M Source/WebCore/html/HTMLOptionElement.h
M Source/WebCore/html/HTMLOptionsCollectionInlines.h
M Source/WebCore/html/HTMLSelectElement.cpp
M Source/WebCore/html/HTMLSelectElement.h
Log Message:
-----------
Enhanced <select>: element nesting changes
https://bugs.webkit.org/show_bug.cgi?id=300317
rdar://162596003
Reviewed by Ryosuke Niwa.
<select>, <optgroup>, <option>, and <hr> elements can now be more
arbitrarily nested.
We also ensure that <select>.options and <select>.selectedOptions
only return <option> elements that belong to the <select> element in
question.
All of this is gated behind the HTMLEnhancedSelectParsingEnabled
preference as this new behavior is only really relevant if the HTML
parser supports such arbitrary nesting.
Tests:
- https://github.com/web-platform-tests/wpt/pull/55419
- https://github.com/web-platform-tests/wpt/pull/55424
This does not handle dynamic changes for <option> element descendants.
Canonical link: https://commits.webkit.org/302288@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications