[Webkit-unassigned] [Bug 36465] window.Document !== window.XMLDocument

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 23 13:14:52 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36465





--- Comment #22 from Adam Barth <abarth at webkit.org>  2010-03-23 13:14:51 PST ---
> Yes, I think that we should kill our C++ document hierarchy, and match HTML5.
> Having separate classes for different document kinds also causes issues like
> bug 25397.

That could be valuable, but is moderately independent of how the web platform
API looks to web content.

> > The load API isn't supposed to appear on SVGDocument.
> 
> What is the problem with it being present on all documents?

Please see the Mozilla bug cited in Comment 20:
https://bugzilla.mozilla.org/show_bug.cgi?id=100795

Basically, if an inline event handler tries to call a function in the global
scoped named "load" the call will fail because document is in the scope chain
for inline event handlers.

> By the way, we
> should consider making document.load hidden, like document.all (but that's not
> a discussion for this bug).

That doesn't seem optimal because (1) it doesn't address the compatibility
issue caused by putting load on every document and (2) it's a novel magical
element of the web platform that isn't present in other browsers.  Adopting the
Firefox solution has the virtues of (A) matching Firefox and thereby reduce the
entropy in the web platform and (B) proven compatibility with web content for
the better part of a decade.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list