Closed Bug 6953 Opened 26 years ago Closed 26 years ago

parser can't handle comments at start of doc

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: waterson, Assigned: nisheeth_mozilla)

Details

Attachments

(1 file)

The parser craps out when the first thing in a document is a comment. I've attached a test file. Remove the comment and everything works fine.
Attached file test case (deleted) —
Assignee: rickg → nisheeth
Niseeth -- this is an expat parser bug, so I'm giving it to you. (Nice, huh?)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Hey Chris, this is one that I don't have to fix! :-) It is illegal to start an XML document with anything other than the XML declaration. The expat parser throws a well-formedness error because it finds the XML declaration on Line 13 instead of Line 1 of the attached XML document. If the XML declaration is moved to the beginning of the document, everything works fine. I'm marking this bug invalid...
Status: RESOLVED → VERIFIED
Verified 1999-06-15-16-M7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: