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)

defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 91046

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 '-->'
Blocks: 57724
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
*** Bug 91046 has been marked as a duplicate of this bug. ***
patch in bug 91046.
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.
No longer blocks: 57724
*** This bug has been marked as a duplicate of 57724 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
QA Contact: bsharma → moied
Reopening 57724 dependencies for independent resolution.
Status: RESOLVED → REOPENED
Depends on: 57724
Keywords: patch
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 91046 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → DUPLICATE
Verified Duplicate of 91046
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.