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

Re: Implementation question

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 21 May 2009 15:53:54 -0400
Message-ID: <4A15B152.3000909@mit.edu>
To: "Emanuele D'Arrigo" <manu3d@gmail.com>
CC: "www-dom@w3.org" <www-dom@w3.org>
Emanuele D'Arrigo wrote:
> This matches the second option in my original post: "(...) Or is the DOM 
> tree created out of the
> input file and then a parallel, specialised, structure is instantiated 
> and appropriately kept in sync with it? (...)".

Not at all.  The frame tree in Gecko is basically the CSS box tree. 
It's not the same as the DOM tree because the two are quite 
non-isomorophic (e.g. display:none elements or comments are not present 
in the box tree).

I'm not quite sure what your original post was about, actually.  There 
is no such thing as "the Element class", I'm not sure what "the 
appropriate object" is, and I'm not sure what the separate data 
structure you describe is actually used for.

What is true is that one must have a tree structure and that the objects 
in this structure must implement the DOM interfaces appropriate for 
them.  The form this takes depends on the binding language; the precise 
list of interfaces implemented for any given object depends on the 
object and on which DOM specs one is trying to support.

Received on Thursday, 21 May 2009 19:54:38 UTC

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