Test that "load" doesn't appear on HTMLDocument or SVGDocument
Created attachment 51397 [details] Patch
Created attachment 51399 [details] Patch
Comment on attachment 51399 [details] Patch 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.
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.
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.
Renamed the bug to talk about non-XML documents. Per HTML5, all documents implement HTMLDocument and SVGDocument interfaces, but only XML documents implement XMLDocumentLoader.
...and as of today, only documents created via createDocument() have it.
Note we're back to having separate interfaces, and load has been removed from every browser. Sure, we could still add a test for this (and a quick look doesn't find any in WPT), but it's exceptionally low priority.