W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

Re: [DOM4] Mutation algorithm imposed order on document children

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 14 Jun 2012 12:51:31 -0400
Message-ID: <4FDA1693.90500@mit.edu>
To: Ojan Vafai <ojan@chromium.org>
CC: Anne van Kesteren <annevk@annevk.nl>, Elliott Sprehn <esprehn@gmail.com>, Ryosuke Niwa <rniwa@webkit.org>, www-dom <www-dom@w3.org>
On 6/14/12 12:36 PM, Ojan Vafai wrote:
> This is comparable in my view to enforcing that table cells always go in
> table rows. HTML parsing enforces that, but appendChild/insertBefore/etc
> don't.

And the result is all sorts of complications in the layout code that has 
to deal with the situation.

> IMO, we should even take it a step further and not have any restrictions
> on how many doctype/element nodes a document can hold. We just spec it
> that the UA ignores any doctype/element nodes in the document after it
> encounters the first node of each type.

This would significantly increase complexity in all sorts of things that 
touch the DOM, including layout.  I'm very much apposed to doing that.

Received on Thursday, 14 June 2012 16:52:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:19 UTC