Re: Accessing DOM elements

Adam Megacz <[email protected]> 03 Apr 2003 04:48:02 -0800
Newsgroups gmane.comp.java.xwt.general
Organization XWT
Message-ID <[email protected]>
Emiliano Heyns <[email protected]> writes:
> > <foo>
> >    bar
> >    <baz>
> > </foo>

{$name:"foo" children:["bar", {$name:baz}]}

> So this would look exactly the same as
> <foo><bar/><baz/></foo>?

{$name:"foo" children:[{$name:"bar"}, {$name:baz}]}

> <foo>
>    bar
>    baz
>    <quux/>
> </foo>

{$name:"foo" children:["bar\nbaz", {$name:baz}]}

A text section is only broken apart when a sibling element falls in
the middle of it.  This was decided by the DOM people, not by me.

  - a

_______________________________________________
http://lists.xwt.org/listinfo/dev