Closed
Bug 1429415
Opened 7 years ago
Closed 4 years ago
Don’t report parse error if </caption> end tag is missing
Categories
(Core :: DOM: HTML Parser, defect, P3)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
DUPLICATE
of bug 1650320
People
(Reporter: sideshowbarker, Unassigned)
References
()
Details
If you open view-source:data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%3Ctitle%3Etest%3C%2Ftitle%3E%3Ctable%3E%3Ccaption%3E%3Ctr%3E%3Ctd%3E%3C%2Ftable%3E in Firefox you’ll see the <tr> start tag is displayed in red, and if you mouse over it, you’ll see a tooltip with the error text «Stray start tag “tr”.»
But due to https://github.com/whatwg/html/commit/759ee62, the HTML spec now allows the </caption> end tag to be omitted, and the HTML parsing algorithm no longer defines the case of a </caption> end tag as a parse error.
Therefore, Firefox should not render that <tr> start tag in red, and no error text should be shown.
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•7 years ago
|
||
https://github.com/validator/htmlparser/pull/5/commits/10a8c8d is a patch for the Java sources (https://github.com/validator/htmlparser/pull/5 is the associated PR).
I failed to locate this bug when migrating the patch. Sorry.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•