-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <input> tag being parsed inside a <select>. The old parser would convert <select><input> into <select></select><input>, and based on my research, this is the case that is most likely going to break sites in SelectParserRelaxation: whatwg/html#10310 Bug: 373672164 Change-Id: I33b40d11c2001092aa076a219dd56c5ea86f13f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5936092 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1369676}
- Loading branch information
1 parent
1578918
commit 9776ce6
Showing
7 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3497,6 +3497,16 @@ | |
"expires": "Feb 1, 2025", | ||
"owners": ["[email protected]", "[email protected]"] | ||
}, | ||
{ | ||
"prefix": "input-closes-select", | ||
"platforms": ["Linux"], | ||
"bases": [ | ||
"external/wpt/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html" | ||
], | ||
"args": ["--enable-features=InputClosesSelect,SelectParserRelaxation"], | ||
"expires": "Feb 1, 2025", | ||
"owners": ["[email protected]", "[email protected]"] | ||
}, | ||
"css-custom-state-deprecated-syntax-enabled is the configuration that is", | ||
"currently shipping to stable.", | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
third_party/blink/web_tests/virtual/input-closes-select/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This suite enables InputClosesSelect flag, which re-adds legacy behavior to the | ||
HTML parser which turns `<select><input>` into `<select></select><input>` to | ||
de-risk the launch of SelectParserRelaxation. | ||
|
||
--enable-features=SelectParserRelaxation,InputClosesSelect |
5 changes: 5 additions & 0 deletions
5
...antics/forms/the-select-element/customizable-select/select-parsing.tentative-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] Input tags should parse inside select instead of closing the select. | ||
assert_equals: expected "\\n <input>\\n" but got "\\n " | ||
Harness: the test ran to completion. | ||
|