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 13:47:39 -0400
Message-ID: <4FDA23BB.9060103@mit.edu>
To: Elliott Sprehn <esprehn@gmail.com>
CC: Ojan Vafai <ojan@chromium.org>, Anne van Kesteren <annevk@annevk.nl>, Ryosuke Niwa <rniwa@webkit.org>, www-dom <www-dom@w3.org>
On 6/14/12 1:31 PM, Elliott Sprehn wrote:
> Out of curiosity why does allowing extra elements complicate this? The
> root is document.documentElement and the doctype is document.doctype.
> Gecko actually traverses document.childNodes when doing layout?

No, but right now the only way for the root of the rendering tree to 
change is for the old one to be removed and the new one to be inserted 
after that.

If you allow multiple elements you have to deal with the situation where 
one element is removed and that suddenly magically requires CSS box 
construction for a different element that you have to find, etc.

It's all code, but it's more code.  ;)  The current setup Just Works 
with the code that has to be there anyway to handle basic remove/insert.

Received on Thursday, 14 June 2012 17:48:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:00 UTC