Closed Bug 104743 Opened 24 years ago Closed 24 years ago

XML parsing error if spaces before <?xml

Categories

(Core :: XML, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dgieff, Assigned: hjtoi-bugzilla)

Details

(Keywords: testcase)

Attachments

(1 file)

When a XML/RSS 0.91 file starts with some blank caracter before <?xml i get a XML parsing error, while the XML is walidate at W3C. XML Parsing Error: xml processing instruction not at start of external entity Location: http://sitbr.digora.com/quoideneuf_rss Line Number 1, Column 4: <?xml ---^
Ooh, very nice bug! Here, have a confirm. Testcase: if the page loads blank, with no text whatsoever, you've passed the test. If you get an error message from the XML parser, you've failed.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
The minimal XHTML document you've provided fails too. You're right : nice bug ;-))
This bug is INVALID, we are doing the correct thing. According to the XML Recommendation, an XML document begins with prolog, which begins with an (optional) XML declaration. No whitespace is allowed before the XML declaration. IE is buggy with this, and does not detect the error. For more details, see http://www.w3.org/TR/2000/REC-xml-20001006#NT-prolog
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
QA Contact: petersen → rakeshmishra
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: