- Good Morning SVG Developers,
within a single file
I would like to know about the following things::
have a separate DOM tree.
Thanking u for the same
- SVG + DOM + JS is pretty much the same like HTML + DOM + JS
is ignored by the XML parser. Also the content of the CDATA block
does not need to be wellformed.
> have a separate DOM tree.
object oriented language. Once the ECMAScript code is interpreted,
you can access methods and properties of the objects in use.
The DOM is a theoretically language independent interface between the
document tree (XML, HTML or SVG, or something else), however, in
practice it is optimized for ECMAScript. The DOM provides interfaces
for ECMAScript to access nodes, create nodes, delete nodes, reorder
nodes, change attrihbutes of nodes, etc.
Hope this helps a little bit. There is a small tutorial on the DOM
and ECMAScript at http://www.carto.net/papers/svg/
manipulating_svg_with_dom_ecmascript/index.shtml and one for events
I also found http://phrogz.net/ObjJob/objects.asp?langID=1 useful to
see all methods and properties of objects in the SVG DOM, including