Closed
Bug 91045
Opened 24 years ago
Closed 23 years ago
View source syntax highlighting doesn't follow parser in strict mode.
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
People
(Reporter: armccurdy, Assigned: harishd)
References
Details
Build : 2001071604
Platform : Win2k
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head></head>
<body>
<!-- Strictly, this is a comment --<> Strictly, this is NOT a comment -->
</body>
</html>
Although the browser window displays the correct thing here, the 'view source'
syntax highlighting suggests the comment extends to the '-->'
![]() |
||
Updated•24 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
*** Bug 91046 has been marked as a duplicate of this bug. ***
Comment 3•24 years ago
|
||
My patch has a regression: The '/' in an empty tag like <hr /> gets lost in
standards mode. I'm working on more similar view-source bugs and will address
this.
BTW, I don't understand the code at
http://lxr.mozilla.org/seamonkey/source/htmlparser/src/nsHTMLTokenizer.cpp#624 .
Why can an "attribute" named '/' be usable in quirks mode? I think it is usable
only for detecting an empty element and for view-source.
Keywords: patch
We're trying to support XHTML syntax and XHTML by default operates in strict mode.
Comment 5•24 years ago
|
||
*** This bug has been marked as a duplicate of 57724 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Comment 6•23 years ago
|
||
Reopening 57724 dependencies for independent resolution.
Comment 7•23 years ago
|
||
*** This bug has been marked as a duplicate of 91046 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•