- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 14 Jun 2012 13:47:39 -0400
- 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. -Boris
Received on Thursday, 14 June 2012 17:48:14 UTC