Test that "load" doesn't appear on HTMLDocument or SVGDocument
Created attachment 51397 [details]
Created attachment 51399 [details]
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.
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.