Open Bug 1933591 Opened 11 months ago Updated 2 days ago

Implement new <select> HTML parser rules

Categories

(Core :: DOM: HTML Parser, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: jarhar, Unassigned)

References

(Blocks 2 open bugs)

Details

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

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Severity: -- → S3
Component: DOM: Core & HTML → DOM: HTML Parser
Type: defect → task
Duplicate of this bug: 1974781

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.

Blocks: 1974784
Type: task → enhancement
OS: Unspecified → All
Hardware: Unspecified → All
You need to log in before you can comment on or make changes to this bug.