Skip to content

Commit 6c98531

Browse files
Make <input> close <option> and <optgroup>
Based on feedback in the <select> parser relaxation HTML spec PR, we might want to close the <select> on these tags when parsing an <input>: whatwg/html#10557 (comment) If the UseCounter shows that usage is low enough, then we could remove this behavior. Bug: 402429384 Change-Id: Id8809d40162c7fd06a446e146d65aaf6258d2e5b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6506819 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1459707}
1 parent af1e34f commit 6c98531

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
</div>
105105
</select>
106106

107+
<select class=test
108+
data-description='Input tags should close select when directly inside an <option>'
109+
data-expect='<option></option>'>
110+
<option>
111+
<input>
112+
</option>
113+
</select>
114+
107115
<div id=afterlast>
108116
keep this div after the last test case
109117
</div>

0 commit comments

Comments
 (0)