Closed Bug 1933591 Opened 1 year ago Closed 3 months ago

Implement new <select> HTML parser rules

Categories

(Core :: DOM: HTML Parser, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
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

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
Status: UNCONFIRMED → NEW
Ever confirmed: true

FYI at https://github.com/validator/htmlparser/pull/113 I have a patch for the Java sources that’s been waiting on review

Blocks: 2019977
Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4ec02d27d372 https://hg.mozilla.org/integration/autoland/rev/7b5d7d64bb82 Revert "Bug 1933591 - Implement new (pref gated) parser rules for <select> r=hsivonen" for causing wpt failures in select-inside-top-layer.html.

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.

Flags: needinfo?(mozilla)
Flags: needinfo?(mozilla)
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e61df9cc1fbf https://hg.mozilla.org/integration/autoland/rev/3d108e4002b3 Revert "Bug 1933591 - Implement new (pref gated) parser rules for <select> r=hsivonen" for causing bp-nu bustages in nsHtml5Parser.cpp.

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'

Flags: needinfo?(mozilla)
Flags: needinfo?(mozilla)
Attachment #9549055 - Attachment description: Bug 1933591 - Implement new (pref gated) parser rules for <select> r?#dom-core,hsivonen → Bug 1933591 - Implement new (pref gated) parser rules for <select> r=hsivonen
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58595 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c151/b150]
Blocks: 2028401
Depends on: 2031668
Attachment #9536621 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: