On Tue, Mar 5, 2013 at 4:38 PM, Boris Zbarsky <[email protected]> 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/
