Bug 10909 - Hixie's XMLHttpRequest/018.html test fails
Summary: Hixie's XMLHttpRequest/018.html test fails
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Alexey Proskuryakov
URL: http://www.hixie.ch/tests/adhoc/dom/w...
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-17 22:00 PDT by Alexey Proskuryakov
Modified: 2019-02-06 09:03 PST (History)
4 users (show)

See Also:


Attachments
test case (3.82 KB, patch)
2008-01-03 13:22 PST, Alexey Proskuryakov
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 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.
Comment 1 Alexey Proskuryakov 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.
Comment 2 Ian 'Hixie' Hickson 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?
Comment 3 Alexey Proskuryakov 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).
Comment 4 Anne van Kesteren 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.
Comment 5 Alexey Proskuryakov 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.
Comment 6 Darin Adler 2008-01-03 13:29:26 PST
Comment on attachment 18254 [details]
test case

r=me
Comment 7 Alexey Proskuryakov 2008-01-03 13:41:05 PST
Committed revision 29133.

Comment 8 Lucas Forschler 2019-02-06 09:03:34 PST
Mass moving XML DOM bugs to the "DOM" Component.