Bug 36480 - Test that "load" doesn't appear on non-XML documents
Summary: Test that "load" doesn't appear on non-XML documents
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: 9063
  Show dependency treegraph
Reported: 2010-03-22 23:33 PDT by Adam Barth
Modified: 2010-08-12 08:47 PDT (History)
1 user (show)

See Also:

Patch (2.64 KB, patch)
2010-03-22 23:35 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Patch (3.67 KB, patch)
2010-03-23 00:41 PDT, Adam Barth
ap: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2010-03-22 23:33:41 PDT
Test that "load" doesn't appear on HTMLDocument or SVGDocument
Comment 1 Adam Barth 2010-03-22 23:35:13 PDT
Created attachment 51397 [details]
Comment 2 Adam Barth 2010-03-23 00:41:22 PDT
Created attachment 51399 [details]
Comment 3 Alexey Proskuryakov 2010-03-23 11:18:38 PDT
Comment on attachment 51399 [details]

As discussed in bug 9063, all documents have the same interface in HTML5.

Maybe we should consider having document.load hidden, like document.all is.
Comment 4 Alexey Proskuryakov 2010-03-23 11:22:21 PDT
Whether this patch should be landed depends on whether we expect that Web will break if we visibly expose Document.load on some documents that don't have it in Firefox. Bug description doesn't mention such, so I r-'ed the patch for now.
Comment 5 Adam Barth 2010-03-23 13:17:54 PDT
This patch documents our existing behavior and links our behavior into the dependency tree of bugs where we're going to decide to keep or change that behavior.  We can hold off landing the tests until we finish making up our minds, but it seems useful to document our current understanding.
Comment 6 Alexey Proskuryakov 2010-08-09 04:06:18 PDT
Renamed the bug to talk about non-XML documents. Per HTML5, all documents implement HTMLDocument and SVGDocument interfaces, but only XML documents implement XMLDocumentLoader.
Comment 7 Alexey Proskuryakov 2010-08-12 08:47:49 PDT
...and as of today, only documents created via createDocument() have it.