RESOLVED FIXED 10909
Hixie's XMLHttpRequest/018.html test fails
https://bugs.webkit.org/show_bug.cgi?id=10909
Summary Hixie's XMLHttpRequest/018.html test fails
Alexey Proskuryakov
Reported 2006-09-17 22:00:30 PDT
Steps to reproduce: open the bug URL. The expected result is "PASS PASS", actual result is "PASS undefined", where undefined comes from r.responseXML.title.
Attachments
test case (3.82 KB, patch)
2008-01-03 13:22 PST, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2006-09-22 11:35:42 PDT
Actually, I do not see how WebKit is wrong here - responseXML is not an HTMLDocument, so it shouldn't have a title property. Hixie, could you perhaps comment on this test? A separate issue (the one that I have originally put in the summary) is that XHTML documents are HTMLDocuments in Firefox, but aren't such in WebKit.
Ian 'Hixie' Hickson
Comment 2 2006-09-22 12:36:36 PDT
All Documents should be HTMLDocuments (and SVGDocuments, and so forth) according to HTML5. But that isn't yet a standard, I guess. How do you decide what type to make a Document at the moment?
Alexey Proskuryakov
Comment 3 2006-09-22 13:10:18 PDT
responseXML is always just a Document in WebKit, and its interface is defined in this IDL: <http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/dom/Document.idl>. HTML and SVGDocuments are made such at creation time (using Content-Type if parsing frame content, or explicitly if created via e.g. implementation.createHTMLDocument).
Anne van Kesteren
Comment 4 2006-09-30 03:19:33 PDT
As far as XMLHttpRequest is concerned you return an object which implements the Document interface. Other specifications, such as HTML5, can say that if you implement HTML, the object that implements the Document interface must also implement HTMLDocument. This seems out of scope for XMLHttpRequest to say.
Alexey Proskuryakov
Comment 5 2008-01-03 13:22:32 PST
Created attachment 18254 [details] test case Although Document/HTMLDocument relationship in WebKit is still quite different from the one specified in HTML5, we do have document.title on non-HTML documents now.
Darin Adler
Comment 6 2008-01-03 13:29:26 PST
Comment on attachment 18254 [details] test case r=me
Alexey Proskuryakov
Comment 7 2008-01-03 13:41:05 PST
Committed revision 29133.
Lucas Forschler
Comment 8 2019-02-06 09:03:34 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.