[whatwg] Why are we merging Document and HTMLDocument again?

Anne van Kesteren annevk at annevk.nl
Tue Mar 5 08:45:14 PST 2013


On Tue, Mar 5, 2013 at 4:38 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> I'm trying to understand why Document and HTMLDocument got merged.  In
> practice, UAs don't do that, and doing it imposes a performance penalty on
> manipulating, say, XMLHttpRequest response documents (because the name
> getter on HTMLDocument makes property access slower on that object).
>
> So why are we doing this?

Because given a random XML MIME type it might end up needing methods
from any given special-case document object (you don't know what
content you'll have). I suppose we could try to restrict some of the
esoteric stuff to only certain objects though...


-- 
http://annevankesteren.nl/



More information about the whatwg mailing list