From c323ee9796d8da474888dbc30038ef9f8081884b Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Fri, 1 Nov 2024 02:24:52 +0000 Subject: [PATCH] Bug 1928139 [wpt PR 48887] - Disable selectedoption inside option, a=testonly Automatic update from web-platform-tests Disable selectedoption inside option This patch prevents an infinite loop due to putting a selectedoption inside of an option element. This case was pointed out here: https://github.com/openui/open-ui/issues/1120 Change-Id: I794e49b5c5d28773ce4684fc3a829365667fe138 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5975638 Commit-Queue: Joey Arhar Reviewed-by: Traian Captan Cr-Commit-Position: refs/heads/main{#1375889} -- wpt-commits: 77665be0abf23117db6596f618be29dc416fdd13 wpt-pr: 48887 UltraBlame original commit: 17d95f3373bf1c72fe9c5b5c337c4534f0e6f421 --- .../selectedoption-in-option-crash.html | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/selectedoption-in-option-crash.html diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/selectedoption-in-option-crash.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/selectedoption-in-option-crash.html new file mode 100644 index 0000000000000..6d3acca27d278 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/selectedoption-in-option-crash.html @@ -0,0 +1,114 @@ +< +! +DOCTYPE +html +> +< +link +rel += +author +href += +" +mailto +: +jarhar +chromium +. +org +" +> +< +link +rel += +help +href += +" +https +: +/ +/ +github +. +com +/ +openui +/ +open +- +ui +/ +issues +/ +1120 +" +> +< +style +> +select +: +: +picker +( +select +) +{ +appearance +: +base +- +select +; +} +< +/ +style +> +< +select +> +< +button +> +< +selectedoption +> +< +/ +selectedoption +> +< +/ +button +> +< +option +> +one +< +selectedoption +> +< +/ +selectedoption +> +< +/ +option +> +< +option +> +two +< +/ +option +> +< +/ +select +>