On 3/5/13 11:45 AM, Anne van Kesteren wrote:
> 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...
I don't care about the methods. Putting all of those on Document is
fine by me, I think.
I care about the named getter being forced onto all documents.
-Boris