Chapter 14. The SVG DOM

SVG by itself is cool, but it's really interactive when you use a programming language such as JavaScript, VBScript, or Java. Therefore, it needs a system that gives the programming language access to the SVG elements and attributes. The World Wide Web Consortium (or W3C, creator of SVG) solved this problem by using the Document Object Model (DOM) as the basis for its own SVG DOM. The SVG DOM is a language-neutral Application Programming Interface (API), which gives any programming language access to the parts of the SVG document. As soon as the programming language has access to the SVG document, it can do virtually everything—create, ...

Get SVG Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.