Closed
Bug 623288
Opened 14 years ago
Closed 14 years ago
All newlines immediately following a <pre> tag are ignored
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 620267
People
(Reporter: ehsan.akhgari, Unassigned)
References
()
Details
(Keywords: regression)
This is a bug in the HTML5 parser, and it's a regression from 3.6. Here is another test case:
data:text/html,<pre> abc</pre><script>alert(document.querySelector("pre").textContent.length)</script>
According to <http://www.w3.org/TR/html5/syntax.html#element-restrictions>, this is the wrong behavior.
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Comment 1•14 years ago
|
||
The original case is described in Bug 620267, but this one seems different (the characters are given by numeric references).
Comment 2•14 years ago
|
||
Yes, the patch in 620267 fixes this too. Both bugs are caused by the HTML parser seeing the LFs as single characters and failing to consume one correctly.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Updated•14 years ago
|
blocking2.0: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•