W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 5 Mar 2013 16:45:14 +0000
Message-ID: <CADnb78gB=pdOGZ4tY09V-oANt4+KB-WgoDaEuoR1ibjq+N861g@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: whatwg <whatwg@whatwg.org>
On Tue, Mar 5, 2013 at 4:38 PM, Boris Zbarsky <bzbarsky@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...

Received on Tuesday, 5 March 2013 16:45:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:20 UTC