Re: Implementation question

On Thu, 21 May 2009 10:30:09 +0200, Emanuele D'Arrigo <manu3d@gmail.com> 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? (...)".

I think both were true to some extent to be honest. Element nodes of elements with a recognized name and namespace are represented by specific objects within the DOM, not generic Element objects. E.g. <a xmlns="http://www.w3.org/1999/xhtml"> is represented by an HTMLAnchorElement object.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 21 May 2009 08:38:21 UTC