• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. The SVG DOM > DOM Background

DOM Background

In August 1997, the W3C first started developing a Document Object Model specification. The goal was to create a language-independent interface to access and modify structured documents. DOM itself is divided into several different modules. In DOM Level 1, there were only two modules: HTML and XML 1.0. In Level 2, support for style sheets and events were added. With this functionality, DOM 2 (DOM Level 2) became interesting for developing SVG because it provided everything you need: access to the document structure, Cascading Style Sheet (CSS) elements, and event-handling mechanisms. SVG DOM uses DOM 2 as a basis and extends it in some areas. For example, SVG DOM extends support for more events than are defined in DOM 2. Some SVG-specific events could not be included in DOM 2 because then DOM would not be an independent interface anymore. The Adobe SVG Viewer extended the SVG DOM even more by adding keyboard events. This functionality once was part of the DOM Level 2 draft but did not make it to the final version (and is now a candidate for DOM Level 3, the to-be-successor standard).

The most important modules of the DOM for SVG are as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint