Re: Implementation question

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.

-Boris

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