Closed Bug 3261 Opened 26 years ago Closed 26 years ago

View Source collapses linear whitespace sequences

Categories

(Core :: DOM: HTML Parser, defect, P4)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ian, Assigned: harishd)

References

()

Details

The document contains the following: <STYLE TYPE="text/css"> [...] --> <!-- --> <!-- -- > .xf { color: yellow; background: red none; } </STYLE> ...in the HEAD. The View Source displays the following: <STYLE TYPE="text/css"> [...] --><!-- --><!-- -->.xf { color: yellow; background: red none; } </STYLE> I believe this is a parser bug that is also causing bug #2781. (Note that viewsource gets a lot else wrong in that STYLE block, I am merely quoting the end part because that is what I noticed first.)
Status: NEW → ASSIGNED
Assignee: rickg → harishd
Status: ASSIGNED → NEW
QA Contact: 3847 → 4110
reassigning qa contact to chrisd
Priority: P2 → P3
Target Milestone: M5
Lowering Priority to P3 and setting a M5 milestone
Status: NEW → ASSIGNED
Target Milestone: M5 → M4
setting milestone to M4
Works now.. Leaving it for QA to close the bug.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Marking FIXED per engineer's 4/6 comments
Status: RESOLVED → VERIFIED
Verified fixed.
Status: VERIFIED → REOPENED
Summary: View Source incorrectly lays out CDO/CDC in STYLE block → View Source collapses linear whitespace sequences
At the test uri given, the following markup: <DIV> Some Markup Here </DIV> ...gets displayed like this: <DIV> Some Markup Here </DIV> ...in ViewSource. This collapsing of linear whitespace only appears to occur in lines. That is, vertical whitespace (line feeds, carriage returns) are not collapsed. Furthermore, the whitespace collapsing does not occur after start tags or in comments. It _does_ occur in CDATA sections (eg, STYLE element content).
Priority: P3 → P4
Target Milestone: M4 → M6
Setting milestone to M6 and priority to P4.
Please clear FIXED resolution if this is still a bug.
Status: REOPENED → ASSIGNED
Resolution: FIXED → ---
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Fixed by latest update to parsing engine.
You need to log in before you can comment on or make changes to this bug.