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.
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.
I discovered the bug is actually in libxml2. I opened a bug there: https://bugzilla.gnome.org/show_bug.cgi?id=612892
This seems to be fixed upstream now. Closing.