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)

x86
macOS
defect
Not set
normal

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>&#10;&#10;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.
blocking2.0: --- → ?
The original case is described in Bug 620267, but this one seems different (the characters are given by numeric references).
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
blocking2.0: ? → ---
You need to log in before you can comment on or make changes to this bug.