From e494143d873674267fcae5f8525c29f4d808114b Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 22 Oct 2024 22:14:37 +0000 Subject: [PATCH] Bug 1925140 [wpt PR 48658] - Add InputClosesSelect flag, a=testonly Automatic update from web-platform-tests Add InputClosesSelect flag This flag is intended to de-risk the launch of SelectParserRelaxation by partially reverting the new parser behavior to the old parser behavior specifically in the case of an tag being parsed inside a into , and based on my research, this is the case that is most likely going to break sites in SelectParserRelaxation: https://github.com/whatwg/html/issues/10310 Bug: 373672164 Change-Id: I33b40d11c2001092aa076a219dd56c5ea86f13f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5936092 Reviewed-by: Mason Freed Commit-Queue: Joey Arhar Cr-Commit-Position: refs/heads/main{#1369676} -- wpt-commits: 00e1df7e329f3d11b91d7b2e11a2db63bbd98ef9 wpt-pr: 48658 UltraBlame original commit: fdce5c8cbadca9d2447fe36c71dcd93160946cda --- .../select-parsing.tentative.html | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html index 5c40ad8c6a406..79a41c7feb8e5 100644 --- a/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html +++ b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html @@ -241,6 +241,19 @@ select > < +select +id += +s7 +> +< +input +> +< +/ +select +> +< div id = @@ -771,6 +784,64 @@ getElementById ( ' +s7 +' +) +. +parentNode +document +. +body +) +; +assert_equals +( +document +. +getElementById +( +' +s7 +' +) +. +innerHTML +< +input +> +) +; +} +' +Input +tags +should +parse +inside +select +instead +of +closing +the +select +. +' +) +; +test +( +( +) += +> +{ +assert_equals +( +document +. +getElementById +( +' afterlast ' )