Closed Bug 1650087 Opened 1 year ago Closed 4 months ago

Generate implied end tags thoroughly

Categories

(Core :: DOM: HTML Parser, defect)

defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

Details

Attachments

(2 files)

No description provided.

When the parser encounters a </template> end tag and there are other
open elements, the HTML spec requires the parser to “generate all
implied end tags thoroughly”, which unlike “generate implied end tags”
also includes generating implied end tags for table-parts elements
(caption, colgroup, tbody, thead, tfoot, td, th, and tr).

Assignee: nobody → hsivonen
Status: NEW → ASSIGNED

Need to make sure there are WPTs to go along this one.

Severity: -- → S3

(In reply to Henri Sivonen (:hsivonen) from comment #2)

Need to make sure there are WPTs to go along this one.

Looks like I was mistaken about this being Web-exposed. Looks like this is View Source-only, too.
https://searchfox.org/whatwg-html/commit/b29ecbe1b74218130ba5c82fa79a943a35f3daea

Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f9f9128e5262
Support “generate all implied end tags thoroughly” r=smaug
https://hg.mozilla.org/integration/autoland/rev/2cec94d2019b
test - Optional table part end tags before template close should not be flagged as errors. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.