Implement new <select> HTML parser rules
Categories
(Core :: DOM: HTML Parser, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: jarhar, Assigned: keithamus)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Steps to reproduce:
Parse <select><div><option>
Actual results:
<div> is not included in resulting DOM
Expected results:
<div> should be included in resulting DOM
We are updating the HTML parser rules for <select> here: We are changing the HTML parser for <select> here: https://github.com/whatwg/html/pull/10557
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•11 months ago
|
Updated•11 months ago
|
| Assignee | ||
Comment 3•8 months ago
|
||
Customisable select will significantly alter the parser with respect to select elements; by removing the "in select" and "in select in table" parser mode, but adding parse error modes to many elements (besides <option>, <optgroup>, and <hr>) if they are a descendant of a <select> element.
Updated•8 months ago
|
Comment 4•6 months ago
|
||
Comment 5•6 months ago
|
||
FYI at https://github.com/validator/htmlparser/pull/113 I have a patch for the Java sources that’s been waiting on review
| Assignee | ||
Comment 6•4 months ago
|
||
Updated•4 months ago
|
Comment 9•3 months ago
|
||
Reverted this because it was causing wpt failures in select-inside-top-layer.html.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | /html/semantics/forms/the-select-element/customizable-select/select-inside-top-layer.html | a modal dialog can be nested inside select - assert_true: the select should be showing expected true got false
Please also check these bp-nu bustages.
| Assignee | ||
Updated•3 months ago
|
Comment 10•3 months ago
|
||
Comment 11•3 months ago
|
||
Comment 12•3 months ago
|
||
Backed out for causing bp-nu bustages in nsHtml5Parser.cpp.
Backout Link
Push with failures
Failure Log
Failure line /builds/worker/checkouts/gecko/parser/html/nsHtml5Parser.cpp(691,7): error: use of undeclared identifier 'StaticPrefs'
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 13•3 months ago
|
||
Comment 15•3 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
Updated•1 month ago
|
Description
•