Skip to content

Commit 1f26ea2

Browse files
committed
Bug 1935213 [wpt PR 49525] - Change parser behavior of <select><select>, a=testonly
Automatic update from web-platform-tests Change parser behavior of <select><select> This patch makes the HTML parser convert nested <select> tags into </select> instead of </select><select> for backwards compatibility with the old parser. This behavior will apply to any nested selects, such as <select><div><select>. This was recommended here: whatwg/html#10557 (comment) This will be tested here: html5lib/html5lib-tests#178 (comment) Change-Id: I7a39901582b96edc10deca8794b9ce117aa08229 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6040687 Commit-Queue: Joey Arhar <jarharchromium.org> Reviewed-by: David Baron <dbaronchromium.org> Cr-Commit-Position: refs/heads/main{#1391787} -- wpt-commits: c4c67222e7b0677f92f43280837db48473603f1e wpt-pr: 49525 UltraBlame original commit: 666bbfe1252e12af9394a702ad62918ae14f44c2
1 parent ded522b commit 1f26ea2

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html

+4-23
Original file line numberDiff line numberDiff line change
@@ -857,36 +857,24 @@
857857
!
858858
!
859859
outerSelect
860-
&
861-
&
862-
!
863-
!
864-
innerSelect
865860
)
866861
;
867862
assert_equals
868863
(
869-
outerSelect
870-
.
871-
nextSibling
872864
innerSelect
865+
null
873866
'
874867
Nested
875868
select
876869
should
877870
be
878-
pushed
879-
out
880-
as
881-
the
882-
next
883-
sibling
871+
removed
884872
'
885873
)
886874
;
887875
assert_equals
888876
(
889-
innerSelect
877+
outerSelect
890878
.
891879
nextElementSibling
892880
nextDiv
@@ -946,19 +934,12 @@
946934
!
947935
!
948936
outerSelect
949-
&
950-
&
951-
!
952-
!
953-
innerSelect
954937
)
955938
;
956939
assert_equals
957940
(
958-
outerSelect
959-
.
960-
nextSibling
961941
innerSelect
942+
null
962943
'
963944
Nested
964945
select

0 commit comments

Comments
 (0)