Skip to content

Commit

Permalink
Bug 1935213 [wpt PR 49525] - Change parser behavior of <select><selec…
Browse files Browse the repository at this point in the history
…t>, 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
  • Loading branch information
marco-c committed Dec 13, 2024
1 parent ded522b commit 1f26ea2
Showing 1 changed file with 4 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -857,36 +857,24 @@
!
!
outerSelect
&
&
!
!
innerSelect
)
;
assert_equals
(
outerSelect
.
nextSibling
innerSelect
null
'
Nested
select
should
be
pushed
out
as
the
next
sibling
removed
'
)
;
assert_equals
(
innerSelect
outerSelect
.
nextElementSibling
nextDiv
Expand Down Expand Up @@ -946,19 +934,12 @@
!
!
outerSelect
&
&
!
!
innerSelect
)
;
assert_equals
(
outerSelect
.
nextSibling
innerSelect
null
'
Nested
select
Expand Down

0 comments on commit 1f26ea2

Please sign in to comment.