W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] createContextualFragment in detached contexts

From: Erik Arvidsson <arv@chromium.org>
Date: Fri, 30 Sep 2011 09:56:47 -0700
Message-ID: <CAJ8+Goj3gTH190LmiWh+PoUs0_30APriJWVLM1gM32Ee+GmYXA@mail.gmail.com>
On Fri, Sep 30, 2011 at 07:35, Henri Sivonen <hsivonen at iki.fi> wrote:
> On Fri, Sep 30, 2011 at 1:37 AM, Erik Arvidsson <arv at chromium.org> wrote:
>> If the context object is in a detached state, then relax the parsing
>> rules so that all elements are allowed at that level. The hand wavy
>> explanation is that for every tag at the top level create a new
>> element in the same way that ownerDocument.createElement would do it.
> I would prefer not to add a new magic mode to the parsing algorithm
> that'd differ from what innerHTML requires.

So you want every js library to have to do this kind of work around
instead? That just dumps the complexity in the lap of js authors which
leads to larger and more complex libraries which in turns slows down
the web for everyone.
Received on Friday, 30 September 2011 09:56:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC