Bug 35698 - [Gtk] cannot parse xml document containing less than 45 characters.
Summary: [Gtk] cannot parse xml document containing less than 45 characters.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://renevier.net/misc/less_than_45...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 13:12 PST by arno.
Modified: 2012-02-18 11:51 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arno. 2010-03-03 13:12:14 PST
Hi,
when processing a xml file missing declaration, webkit fails to parse the document.
See for example:
http://renevier.net/misc/without_declaration.xml

Some websites send that kind of document throught xmlhttprequest and try to read its content with responseXML. They break in webkit (at least webkit-gtk, I don't know about other ports). 

I tried with opera and gecko, and they parse the document. See http://renevier.net/misc/xhr_without_declaration.html for an example where this document is loaded in xhr.
Comment 1 arno. 2010-03-14 06:12:06 PDT
Actually, the bug is not about xml document having a declaration. The bug is about xml document being less than 45 characters. If a xml document is less than 45 characters, webkit cannot parse it. changing bug title and url.
Comment 2 arno. 2010-03-14 12:34:28 PDT
I discovered the bug is actually in libxml2. I opened a bug there:
https://bugzilla.gnome.org/show_bug.cgi?id=612892
Comment 3 Martin Robinson 2012-02-18 11:51:51 PST
This seems to be fixed upstream now. Closing.