W3C

SVG Integration 1.0

W3C

This version:
Latest version:
Editors:
Doug Schepers, W3C <schepers@w3.org>
Cameron McCormack, Invited Expert <cam@mcc.id.au>
Authors:
The authors of this specification are the participants of the W3C SVG Working Group.

Abstract

The SVG Integration Module is intended as a guide to other markup and programming on how to best integrate SVG, within the context of that language's constraints. SVG may be integrated in whole or in part, and may be included in another language by reference or by inclusion (that is, through linking or inline). This specification contains normatively referenceable material, and discusses default behaviors and best practices, but is not intended to override the design of the referencing language.

This specification contains references to other SVG specifications.

Status of This Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C.

This document has been produced by the W3C SVG Working Group as part of the W3C Graphics Activity within the Interaction Domain.

We explicitly invite comments on this specification. Please send them to www-svg@w3.org (archives), the public email list for issues related to vector graphics on the Web. Acceptance of the archiving policy is requested automatically upon first post to either list. To subscribe to this list, please send an email to www-svg-request@w3.org with the word subscribe in the subject line.

The latest information regarding patent disclosures related to this document is available on the Web. As of this publication, the SVG Working Group are not aware of any royalty-bearing patents they believe to be essential to SVG.

Publication of this document does not imply endorsement by the W3C membership. A list of current W3C Recommendations and other technical documents can be found at http://www.w3.org/TR/. W3C publications may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to cite a W3C Working Draft as anything other than a work in progress.


How to read this document and give feedback

This draft of SVG Integration introduces new normative prose for integrating the SVG language into other markup languages. One of the goals is that this specification can be re-used more easily by other specifications that want to have well-defined interaction and interoperability with SVG. Future drafts of this specification may introduce syntax and markup for the SVG language that may not be backwards compatible with older SVG User Agents, and the use of this syntax should be accompanied by a fallback using the 'switch' element.

The main purpose of this document is to encourage public feedback. The best way to give feedback is by sending an email to www-svg@w3.org. Please include some kind of keyword that identifies the area of the specification the comment is referring to in the subject line of your message (e.g "Section X.Y - Foo attribute values" or "Integration"). If you have comments on multiple areas of this document, then it is probably best to split those comments into multiple messages.

The public are welcome to comment on any aspect in this document, but there are a few areas in which the SVG Working Group are explicitly requesting feedback. These areas are noted in place within this document. There is also a specific area related to the specification that is listed here:

Table of Contents

Introduction

Describe the technology and specification here.

Note that even though this specification references parts of SVG 1.1 and SVG Tiny 1.2 it does not require a complete implementation of those specifications.

This document is normative.

This document contains explicit conformance criteria that overlap with some RNG definitions in requirements. If there is any conflict between the two, the explicit conformance criteria are the definitive reference.

Use Cases and Requirements

This section is informative.

Here are some of the use cases and requirements for this specification.

Referencing Modes for SVG

There are many different ways in which an external SVG file may be referenced in a host language. These different scenarios are known as referencing modes, and each referencing mode is suited to a different set of constraints, in terms of security, performance optimization, intended usage, and legacy considerations. Each referencing mode defines whether such features as script execution, external references, declarative animation, interactivity, and linking must or must not be supported. Different referencing modes may be specified for different aspects of the same language, or a language may use a single referencing mode, depending on the complexity of the language. A conforming User Agent must support the full feature set defined for each referencing mode for all languages that that User Agent supports, and must not permit behavior disallowed by the relevant referencing mode. Where multiple referencing modes are permitted, authors should choose the most restricted referencing mode that meets their needs.

A DOM must be produced and maintained for SVG images using all referencing modes except Immediate Mode, and the DOM must be exposed to Accessibility Technology User Agents. Should we have an Immediate Mode?

Should we talk about CORS here?

Feature Definitions

declarative animation
Declarative animation is a change or set of changes to the presentation of the SVG image through the use of predefined elements or properties, as with the SMIL elements 'animate', 'set', etc., as opposed to procedural script. Declarative animation may be triggered by either a event timeline or by user-generated events (see interaction). Because it has a bounded set of functionality, declarative animation may pose less of a security risk than script execution. Complex animations may be computationally intensive, and thus may not be suitable for all devices or referencing modes.
external reference

An external reference is any link from the current file to another file for inclusion, rendering, or processing in the context of the current file. In some situations, external references may constitute a security concern; because it is difficult to detect when the use of an external resource is safe and when it is not, under secure circumstances, all external references should be disabled, unless there is an appropriate security mechanism in place (CORS?). External references include, but are not limited to:

link traversal
Link traversal refers to changing of the user agent's current active document view by user activation of a hyperlink. In the context of referencing modes, link traversal only pertains to hyperlinks defined within the referenced SVG file. A host language may allow all or part of an SVG image to serve as a link in the host language's context and using that language's conventions and mechanisms, such as using HTML's 'a' or 'map' elements.
script execution
Script execution is the processing and application of procedural (as opposed to declarative) code and events. Where a referencing mode does not allow script execution, this prohibition must apply to scripted events or changes to the SVG DOM whether the script is contained inside the referenced SVG file or in the host language file. In the context of referencing modes, script execution only pertains to the DOM of the SVG image, not to events or changes to the host language's DOM. For example, an SVG image would act the same as a PNG image in an HTML 'a' element, such that a mouse event on that 'a' element would fire and bubble up the HTML DOM, but would not be available to a script in the SVG DOM.
interaction
Interaction means receiving and processing user-generated events, such as mouse or keyboard activity. Where a referencing mode does not allow interactivity, such as for performance or security reasons, the interactivity is prohibited in the SVG DOM only, and may trigger events normally in the the host language's context.

Dynamic Interactive Mode

This referencing mode imposes no restrictions on any feature of the SVG language. This is the referencing mode that must be used for standalone SVG files in normal circumstances. This specification recommends that this referencing mode apply to those elements that are referred to in HTML5 as a browsing context, such as the 'object', 'iframe', and 'embed' elements.

Dynamic Interactive Features
script execution yes
external references yes
declarative animation yes
interactivity yes
link traversal yes

Animated Mode

This referencing mode is intended for circumstances where performance may be an issue, where there are limited security concerns, or where image support has traditionally been limited to raster images (such as JPEG or PNG), but where animation is desired. Animated mode allows declarative animation, but permits no script execution, interactivity, or link traversal. This is the referencing mode that must be supported for the SVG 'image' element and is recommended to apply to the HTML 'img' element and for use as a Widget icon.

Animated Features
script execution no
external references yes
declarative animation yes
interactivity no
link traversal no

Secure Animated Mode

This referencing mode is intended for circumstances where performance may be an issue, where there are strict security concerns, or where image support has traditionally been limited to raster images (such as JPEG or PNG), but where animation is desired. Secure animated mode allows declarative animation, but permits no script execution, external references, interactivity, or link traversal.

Secure Animated Features
script execution no
external references no
declarative animation yes
interactivity no
link traversal no

Static Mode

This referencing mode is intended for circumstances where performance may be an issue, or where there are limited security concerns. Static mode permits no script execution, declarative animation, interactivity, or link traversal. This is the referencing mode that is recommended to apply to CSS background images.

Static Features
script execution no
external references yes
declarative animation no
interactivity no
link traversal no

Secure Static Mode

This referencing mode is intended for circumstances where performance may be an issue, or where there are strict security concerns. Secure static mode permits no script execution, external references, declarative animation, interactivity, or link traversal.

Secure Static Features
script execution no
external references no
declarative animation no
interactivity no
link traversal no

Immediate Mode

This referencing mode is intended for circumstances where performance is a major concern. Immediate mode permits no script execution, external references, declarative animation, interactivity, or link traversal. In addition, a User Agent may to discard the DOM representation from memory after rendering. This is only to be used in extreme circumstances, as it severely limits the usability and accessibility of SVG. Should we have an Immediate Mode?

Immediate Features
script execution no
external references no
declarative animation no
interactivity no
link traversal no

Examples

Below are various methods of embedding SVG in an HTML page by reference. Each referencing mode element should display a yellow smiley face. In each example below, clicking on the eyes tests link traversal, and clicking on the face tests declarative interactivity and script execution. The link should replace the image with a blue square (clicking on that will return you to the original image). The declarative (SMIL) interactivity should change the image from shades of yellow to shades of green. The script should fill in the smile. Time-based (as opposed to interactivity-based) declarative animation is supported if the left eye is winking.

Example 1: Different referencing modes in HTML
object iframe embed img CSS background
Please use FF1.5+, Opera 9+, WebKit/Safari3.0, or IE with an SVG plugin! smiley face  

Foreign Content and SVG

SVG is designed to be used as a standalone format, or in combination with other formats such as X/HTML. These different formats can be used by reference, as detailed in Referencing Modes for SVG, or inline, as with the 'foreignObject' element described in embedding foreign object types.

'foreignObject' Element

When 'foreignObject' is used to contain content which is styled by CSS, the viewport establishes the initial containing block. The dimensions of the CSS viewport in pixels are the width and height attribute values of the 'foreignObject' element in user units.

Extending SVG

Extension conformance requirements

Specifications and implementations are allowed to extend the SVG specification but in order to claim conformance the following criteria need to be met:

Foreign namespaces and private data

SVG allows inclusion of elements from foreign namespaces anywhere with the SVG content. In general, the SVG user agent must include any unknown elements in the DOM, but must otherwise ignore unknown elements. (The notable exception is described under Embedding foreign object types.)

Extension elements in the SVG namespace must not be used.

Additionally, SVG allows inclusion of attributes from foreign namespaces on any SVG element. Extensions of SVG-namespaced elements in the form of attributes must be bound to a namespace by a prefix. Any unbound attributes not defined by an SVG specification must be treated as unknown attributes. The SVG user agent must include unknown attributes in the DOM, but may otherwise ignore unknown attributes. Attributes bound to a foreign namespace may extend the semantics or behavior of SVG elements in user agents that support that foreign namespace.

SVG's ability to include foreign namespaces can be used for the following purposes:

To illustrate, a business graphics authoring application might want to include some private data within an SVG document so that it could properly reassemble the chart (a pie chart in this case) upon reading it back in:

Example: 23_01.svg
<?xml version="1.0"?>
  <svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"
       width="4in" height="3in">

    <defs>

      <myapp:piechart xmlns:myapp="http://example.org/myapp"
                      title="Sales by Region">
        <myapp:pieslice label="Northern Region" value="1.23"/>
        <myapp:pieslice label="Eastern Region" value="2.53"/>
        <myapp:pieslice label="Southern Region" value="3.89"/>
        <myapp:pieslice label="Western Region" value="2.04"/>
        <!-- Other private data goes here -->

      </myapp:piechart>
    </defs>

    <desc>This chart includes private data in another namespace</desc>

    <!-- In here would be the actual SVG graphics elements which
         draw the pie chart -->
  </svg>

  

SVG Encoding

XML encoding conformance requirements

An SVG Document Fragment, SVG Stand-Alone Document, or SVG Included Document encoded using XML conforms to the SVG specifications if it is valid, well-formed, and uses namespaces according to the Namespaces in XML specification. Non-conforming documents may be rendered according to the behavior specified for error-correction in the SVG or XML specifications. Which SVG spec should define better error handling?

Non-XML encoding conformance requirements

An SVG Document Fragment, SVG Stand-Alone Document, or SVG Included Document encoded using a non-XML encoding (e.g. efficient XML compression, or HTML5 parser) conforms to the SVG specifications if and only if the non-XML encoding in question guarantees roundtripping from XML to the encoding and back in such a way that the resulting document when processed by an SVG user agent must always render, animate, and interact in the exact same way as the original. Note that this requires a high-level of fidelity from the encoding including, but not limited to, the ability to encode non-conforming content and content from foreign namespaces without loss, maintaining ID typing, and not removing non-rendered elements such as 'title', 'desc', 'metadata', or elements not included in the rendering tree through use of conditional processing attributes.

SVG Elements Table

This is a comprehensive list of all SVG elements from the SVG 1.1 [SVG11] and SVG Tiny 1.2 [SVGT12] specifications. This document will be updated as new elements are minted.

For purposes of string matching and conversion, such as post-parsing case-fixing, the Element Name shall represent the canonical string. If an implementation finds a case-insensitive string match for any of these element name which contains characters in the range U+0041..U+005A (Unicode class Lu), the equivalent characters in the range U+0061..U+007A (Unicode class Ll) must be converted to the equivalent class Lu character. In other words, for mixed-case element names, the lowercase-only strings must be changed to the mixed-case string.

Element Name
Column containing the element names. All elements are in the SVG namespace, except for 'listener' which is in the XML Events namespace.
Attributes
For each element, this lists the attributes which may occur on it. Note that these are only the attributes and not the properties.
Properties
This column indicates whether or not the given element may receive properties. There are several options:
All properties defined in this specification can be set as attributes on the given element.
None of the properties defined in this specification can be set as attributes on the given element.
M
Only the properties in the SVG Tiny 1.2 media group can be set on this given element. The media group is a subset of the properties that is meaningful on media elements and does not cause the 'fill' property to clash with the 'fill' SMIL attribute. The media group comprises the following properties: 'audio-level', 'buffered-rendering', 'display', 'image-rendering', 'pointer-events', 'shape-rendering', 'text-rendering', 'viewport-fill', 'viewport-fill-opacity', and 'visibility'.
Possible Children
Lists the elements that can occur as children of the given element.
[character data]
Indicates that character data can occur as the child of a given element.
N/A
Indicates that the element, and its associated attributes and properties, are not defined in that particular specification.
Element Name Attributes Properties Possible Child Elements
SVG 1.1 SVGT 1.2 SVG 1.1 SVGT 1.2 SVG 1.1 SVGT 1.2
'a'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, target, transform, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, class, content, datatype, externalResourcesRequired, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, target, transform, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space [character data], a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view The 'a' element may contain any element that its parent may contain, except itself.
'altGlyph'SVG11, SVGT12 class, dx, dy, externalResourcesRequired, format, glyphRef, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, rotate, style, systemLanguage, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A Any elements or character data. N/A
'altGlyphDef'SVG11, SVGT12 id, xml:base, xml:lang, xml:space N/A N/A altGlyphItem, glyphRef N/A
'altGlyphItem'SVG11, SVGT12 id, xml:base, xml:lang, xml:space N/A N/A glyphRef N/A
'animate'SVG11, SVGT12 accumulate, additive, attributeName, attributeType, begin, by, calcMode, dur, end, externalResourcesRequired, fill, from, id, keySplines, keyTimes, max, min, onbegin, onend, onload, onrepeat, repeatCount, repeatDur, requiredExtensions, requiredFeatures, restart, systemLanguage, to, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, accumulate, additive, attributeName, attributeType, begin, by, calcMode, class, content, datatype, dur, end, fill, from, id, keySplines, keyTimes, max, min, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, systemLanguage, to, typeof, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space desc, metadata, title desc, handler, metadata, switch, title
'animateColor'SVG11, SVGT12 accumulate, additive, attributeName, attributeType, begin, by, calcMode, dur, end, externalResourcesRequired, fill, from, id, keySplines, keyTimes, max, min, onbegin, onend, onload, onrepeat, repeatCount, repeatDur, requiredExtensions, requiredFeatures, restart, systemLanguage, to, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, accumulate, additive, attributeName, attributeType, begin, by, calcMode, class, content, datatype, dur, end, fill, from, id, keySplines, keyTimes, max, min, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, systemLanguage, to, typeof, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space desc, metadata, title desc, handler, metadata, switch, title
'animateMotion'SVG11, SVGT12 accumulate, additive, begin, by, calcMode, dur, end, externalResourcesRequired, fill, from, id, keyPoints, keySplines, keyTimes, max, min, onbegin, onend, onload, onrepeat, origin, path, repeatCount, repeatDur, requiredExtensions, requiredFeatures, restart, rotate, systemLanguage, to, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, accumulate, additive, begin, by, calcMode, class, content, datatype, dur, end, fill, from, id, keyPoints, keySplines, keyTimes, max, min, origin, path, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, rotate, systemLanguage, to, typeof, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space desc, metadata, mpath, title desc, handler, metadata, mpath, switch, title
'animateTransform'SVG11, SVGT12 accumulate, additive, attributeName, attributeType, begin, by, calcMode, dur, end, externalResourcesRequired, fill, from, id, keySplines, keyTimes, max, min, onbegin, onend, onload, onrepeat, repeatCount, repeatDur, requiredExtensions, requiredFeatures, restart, systemLanguage, to, type, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, accumulate, additive, attributeName, attributeType, begin, by, calcMode, class, content, datatype, dur, end, fill, from, id, keySplines, keyTimes, max, min, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, systemLanguage, to, type, typeof, values, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space desc, metadata, title desc, handler, metadata, switch, title
'animation'SVG11, SVGT12 N/A about, begin, class, content, datatype, dur, end, externalResourcesRequired, fill, focusHighlight, focusable, height, id, initialVisibility, max, min, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, preserveAspectRatio, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, syncBehavior, syncMaster, syncTolerance, systemLanguage, transform, typeof, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space, y N/A M N/A animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'audio'SVG11, SVGT12 N/A about, begin, class, content, datatype, dur, end, externalResourcesRequired, fill, id, max, min, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, syncBehavior, syncMaster, syncTolerance, systemLanguage, type, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space M N/A animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'circle'SVG11, SVGT12 class, cx, cy, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, r, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, cx, cy, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, r, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'clipPath'SVG11, SVGT12 class, clipPathUnits, externalResourcesRequired, id, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space N/A N/A animate, animateColor, animateMotion, animateTransform, circle, desc, ellipse, line, metadata, path, polygon, polyline, rect, set, text, title, use N/A
'color-profile'SVG11, SVGT12 id, local, name, rendering-intent, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space N/A N/A desc, metadata, title N/A
'cursor'SVG11, SVGT12 externalResourcesRequired, id, requiredExtensions, requiredFeatures, systemLanguage, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A desc, metadata, title N/A
'defs'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, datatype, id, property, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view a, animate, animateColor, animateMotion, animateTransform, animation, audio, circle, defs, desc, discard, ellipse, font, font-face, foreignObject, g, handler, image, line, linearGradient, listener, metadata, path, polygon, polyline, prefetch, radialGradient, rect, script, set, solidColor, switch, text, textArea, title, use, video
'desc'SVG11, SVGT12 class, id, style, xml:base, xml:lang, xml:space about, class, content, datatype, id, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, typeof, xml:base, xml:id, xml:lang, xml:space M Any elements or character data. [character data]
'discard'SVG11, SVGT12 N/A about, begin, class, content, datatype, id, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space N/A desc, handler, metadata, switch, title
'ellipse'SVG11, SVGT12 class, cx, cy, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, rx, ry, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, cx, cy, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, rx, ry, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'feBlend'SVG11, SVGT12 class, height, id, in, in2, mode, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feColorMatrix'SVG11, SVGT12 class, height, id, in, result, style, type, values, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feComponentTransfer'SVG11, SVGT12 class, height, id, in, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A feFuncA, feFuncB, feFuncG, feFuncR N/A
'feComposite'SVG11, SVGT12 class, height, id, in, in2, k1, k2, k3, k4, operator, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feConvolveMatrix'SVG11, SVGT12 bias, class, divisor, edgeMode, height, id, in, kernelMatrix, kernelUnitLength, order, preserveAlpha, result, style, targetX, targetY, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feDiffuseLighting'SVG11, SVGT12 class, diffuseConstant, height, id, in, kernelUnitLength, result, style, surfaceScale, width, x, xml:base, xml:lang, xml:space, y N/A N/A desc, feDistantLight, fePointLight, feSpotLight, metadata, title N/A
'feDisplacementMap'SVG11, SVGT12 class, height, id, in, in2, result, scale, style, width, x, xChannelSelector, xml:base, xml:lang, xml:space, y, yChannelSelector N/A N/A animate, set N/A
'feDistantLight'SVG11, SVGT12 azimuth, elevation, id, xml:base, xml:lang, xml:space N/A N/A animate, set N/A
'feFlood'SVG11, SVGT12 class, height, id, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feFuncA'SVG11, SVGT12 amplitude, exponent, id, intercept, offset, slope, tableValues, type, xml:base, xml:lang, xml:space N/A N/A animate, set N/A
'feFuncB'SVG11, SVGT12 amplitude, exponent, id, intercept, offset, slope, tableValues, type, xml:base, xml:lang, xml:space N/A N/A animate, set N/A
'feFuncG'SVG11, SVGT12 amplitude, exponent, id, intercept, offset, slope, tableValues, type, xml:base, xml:lang, xml:space N/A N/A animate, set N/A
'feFuncR'SVG11, SVGT12 amplitude, exponent, id, intercept, offset, slope, tableValues, type, xml:base, xml:lang, xml:space N/A N/A animate, set N/A
'feGaussianBlur'SVG11, SVGT12 class, height, id, in, result, stdDeviation, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feImage'SVG11, SVGT12 class, externalResourcesRequired, height, id, preserveAspectRatio, result, style, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feMerge'SVG11, SVGT12 class, height, id, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A feMergeNode N/A
'feMergeNode'SVG11, SVGT12 id, xml:base, xml:lang, xml:space N/A N/A None. N/A
'feMorphology'SVG11, SVGT12 class, height, id, in, operator, radius, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feOffset'SVG11, SVGT12 class, dx, dy, height, id, in, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'fePointLight'SVG11, SVGT12 id, x, xml:base, xml:lang, xml:space, y, z N/A N/A animate, set N/A
'feSpecularLighting'SVG11, SVGT12 class, height, id, in, kernelUnitLength, result, specularConstant, specularExponent, style, surfaceScale, width, x, xml:base, xml:lang, xml:space, y N/A N/A desc, feDistantLight, fePointLight, feSpotLight, metadata, title N/A
'feSpotLight'SVG11, SVGT12 id, limitingConeAngle, pointsAtX, pointsAtY, pointsAtZ, specularExponent, x, xml:base, xml:lang, xml:space, y, z N/A N/A animate, set N/A
'feTile'SVG11, SVGT12 class, height, id, in, result, style, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'feTurbulence'SVG11, SVGT12 baseFrequency, class, height, id, numOctaves, result, seed, stitchTiles, style, type, width, x, xml:base, xml:lang, xml:space, y N/A N/A animate, set N/A
'filter'SVG11, SVGT12 class, externalResourcesRequired, filterRes, filterUnits, height, id, primitiveUnits, style, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A animate, desc, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feFlood, feGaussianBlur, feImage, feMerge, feMorphology, feOffset, feSpecularLighting, feTile, feTurbulence, metadata, set, title N/A
'font'SVG11, SVGT12 class, externalResourcesRequired, horiz-adv-x, horiz-origin-x, horiz-origin-y, id, style, vert-adv-y, vert-origin-x, vert-origin-y, xml:base, xml:lang, xml:space about, class, content, datatype, externalResourcesRequired, horiz-adv-x, horiz-origin-x, id, property, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space desc, font-face, glyph, hkern, metadata, missing-glyph, title, vkern desc, font-face, glyph, hkern, metadata, missing-glyph, switch, title
'font-face'SVG11, SVGT12 accent-height, alphabetic, ascent, bbox, cap-height, descent, font-family, font-size, font-stretch, font-style, font-variant, font-weight, hanging, id, ideographic, mathematical, overline-position, overline-thickness, panose-1, slope, stemh, stemv, strikethrough-position, strikethrough-thickness, underline-position, underline-thickness, unicode-range, units-per-em, v-alphabetic, v-hanging, v-ideographic, v-mathematical, widths, x-height, xml:base, xml:lang, xml:space about, accent-height, alphabetic, ascent, bbox, cap-height, class, content, datatype, descent, externalResourcesRequired, font-family, font-stretch, font-style, font-variant, font-weight, hanging, id, ideographic, mathematical, overline-position, overline-thickness, panose-1, property, rel, resource, rev, role, slope, stemh, stemv, strikethrough-position, strikethrough-thickness, typeof, underline-position, underline-thickness, unicode-range, units-per-em, widths, x-height, xml:base, xml:id, xml:lang, xml:space desc, font-face-src, metadata, title desc, font-face-src, metadata, switch, title
'font-face-format'SVG11, SVGT12 id, string, xml:base, xml:lang, xml:space N/A N/A None. N/A
'font-face-name'SVG11, SVGT12 id, name, xml:base, xml:lang, xml:space N/A N/A None. N/A
'font-face-src'SVG11, SVGT12 id, xml:base, xml:lang, xml:space about, class, content, datatype, id, property, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space font-face-name, font-face-uri desc, font-face-uri, metadata, switch, title
'font-face-uri'SVG11, SVGT12 id, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, class, content, datatype, externalResourcesRequired, id, property, rel, resource, rev, role, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space font-face-format desc, metadata, switch, title
'foreignObject'SVG11, SVGT12 class, externalResourcesRequired, height, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, transform, width, x, xml:base, xml:lang, xml:space, y about, class, content, datatype, externalResourcesRequired, focusHighlight, focusable, height, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space, y Any elements or character data. desc, metadata, svg, switch, title
'g'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, datatype, externalResourcesRequired, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view a, animate, animateColor, animateMotion, animateTransform, animation, audio, circle, defs, desc, discard, ellipse, font, font-face, foreignObject, g, handler, image, line, linearGradient, listener, metadata, path, polygon, polyline, prefetch, radialGradient, rect, script, set, solidColor, switch, text, textArea, title, use, video
'glyph'SVG11, SVGT12 arabic-form, class, d, glyph-name, horiz-adv-x, id, lang, orientation, style, unicode, vert-adv-y, vert-origin-x, vert-origin-y, xml:base, xml:lang, xml:space about, arabic-form, class, content, d, datatype, glyph-name, horiz-adv-x, id, lang, property, rel, resource, rev, role, typeof, unicode, xml:base, xml:id, xml:lang, xml:space a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view desc, metadata, switch, title
'glyphRef'SVG11, SVGT12 class, dx, dy, format, glyphRef, id, style, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A None. N/A
'handler'SVG11, SVGT12 N/A about, class, content, datatype, ev:event, externalResourcesRequired, id, property, rel, resource, rev, role, type, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space N/A [character data], desc, metadata, switch, title
'hkern'SVG11, SVGT12 g1, g2, id, k, u1, u2, xml:base, xml:lang, xml:space about, class, content, datatype, g1, g2, id, k, property, rel, resource, rev, role, typeof, u1, u2, xml:base, xml:id, xml:lang, xml:space None. desc, metadata, switch, title
'image'SVG11, SVGT12 class, externalResourcesRequired, height, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, preserveAspectRatio, requiredExtensions, requiredFeatures, style, systemLanguage, transform, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y about, class, content, datatype, externalResourcesRequired, focusHighlight, focusable, height, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, opacity, preserveAspectRatio, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, type, typeof, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space, y M animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'line'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, transform, x1, x2, xml:base, xml:lang, xml:space, y1, y2 about, class, content, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, x1, x2, xml:base, xml:id, xml:lang, xml:space, y1, y2 animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'linearGradient'SVG11, SVGT12 class, externalResourcesRequired, gradientTransform, gradientUnits, id, spreadMethod, style, x1, x2, xlink:arcrole, xlink:href, xlink:role, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y1, y2 about, class, content, datatype, gradientUnits, id, property, rel, resource, rev, role, typeof, x1, x2, xml:base, xml:id, xml:lang, xml:space, y1, y2 animate, animateTransform, desc, metadata, set, stop, title animate, animateColor, animateMotion, animateTransform, desc, discard, metadata, set, stop, switch, title
'listener'SVG11, SVGT12 N/A about, class, content, datatype, defaultAction, event, handler, id, observer, phase, propagate, property, rel, resource, rev, role, target, typeof, xml:base, xml:id, xml:lang, xml:space N/A N/A
'marker'SVG11, SVGT12 class, externalResourcesRequired, id, markerHeight, markerUnits, markerWidth, orient, preserveAspectRatio, refX, refY, style, viewBox, xml:base, xml:lang, xml:space N/A N/A a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view N/A
'mask'SVG11, SVGT12 class, externalResourcesRequired, height, id, maskContentUnits, maskUnits, requiredExtensions, requiredFeatures, style, systemLanguage, width, x, xml:base, xml:lang, xml:space, y N/A N/A a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view N/A
'metadata'SVG11, SVGT12 id, xml:base, xml:lang, xml:space about, class, content, datatype, id, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, typeof, xml:base, xml:id, xml:lang, xml:space M Any elements or character data. [character data]
'missing-glyph'SVG11, SVGT12 class, d, horiz-adv-x, id, style, vert-adv-y, vert-origin-x, vert-origin-y, xml:base, xml:lang, xml:space about, class, content, d, datatype, horiz-adv-x, id, property, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view desc, metadata, switch, title
'mpath'SVG11, SVGT12 externalResourcesRequired, id, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, class, content, datatype, id, property, rel, resource, rev, role, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space desc, metadata, title desc, metadata, switch, title
'path'SVG11, SVGT12 class, d, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, pathLength, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, d, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, pathLength, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'pattern'SVG11, SVGT12 class, externalResourcesRequired, height, id, patternContentUnits, patternTransform, patternUnits, preserveAspectRatio, requiredExtensions, requiredFeatures, style, systemLanguage, viewBox, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view N/A
'polygon'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, points, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, points, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'polyline'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, points, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, points, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'prefetch'SVG11, SVGT12 N/A about, bandwidth, class, content, datatype, id, mediaCharacterEncoding, mediaContentEncodings, mediaSize, mediaTime, property, rel, resource, rev, role, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space N/A desc, metadata, switch, title
'radialGradient'SVG11, SVGT12 class, cx, cy, externalResourcesRequired, fx, fy, gradientTransform, gradientUnits, id, r, spreadMethod, style, xlink:arcrole, xlink:href, xlink:role, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, class, content, cx, cy, datatype, gradientUnits, id, property, r, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateTransform, desc, metadata, set, stop, title animate, animateColor, animateMotion, animateTransform, desc, discard, metadata, set, stop, switch, title
'rect'SVG11, SVGT12 class, externalResourcesRequired, height, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, rx, ry, style, systemLanguage, transform, width, x, xml:base, xml:lang, xml:space, y about, class, content, datatype, focusHighlight, focusable, height, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, rx, ry, systemLanguage, transform, typeof, width, x, xml:base, xml:id, xml:lang, xml:space, y animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'script'SVG11, SVGT12 externalResourcesRequired, id, type, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, class, content, datatype, externalResourcesRequired, id, property, rel, resource, rev, role, type, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space Any elements or character data. [character data], desc, metadata, switch, title
'set'SVG11, SVGT12 attributeName, attributeType, begin, dur, end, externalResourcesRequired, fill, id, max, min, onbegin, onend, onload, onrepeat, repeatCount, repeatDur, requiredExtensions, requiredFeatures, restart, systemLanguage, to, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space about, attributeName, attributeType, begin, class, content, datatype, dur, end, fill, id, max, min, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, systemLanguage, to, typeof, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space desc, metadata, title desc, handler, metadata, switch, title
'solidColor'SVG11, SVGT12 N/A about, class, content, datatype, id, property, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space N/A animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'stop'SVG11, SVGT12 class, id, offset, style, xml:base, xml:lang, xml:space about, class, content, datatype, id, offset, property, rel, resource, rev, role, typeof, xml:base, xml:id, xml:lang, xml:space animate, animateColor, set animate, animateColor, animateMotion, animateTransform, desc, discard, metadata, set, switch, title
'style'SVG11, SVGT12 id, media, title, type, xml:base, xml:lang, xml:space N/A N/A Any elements or character data. N/A
'svg'SVG11, SVGT12 baseProfile, class, contentScriptType, contentStyleType, externalResourcesRequired, height, id, onabort, onactivate, onclick, onerror, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onscroll, onunload, onzoom, preserveAspectRatio, requiredExtensions, requiredFeatures, style, systemLanguage, version, viewBox, width, x, xml:base, xml:lang, xml:space, y, zoomAndPan about, baseProfile, class, content, contentScriptType, datatype, externalResourcesRequired, focusHighlight, focusable, height, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, playbackOrder, preserveAspectRatio, property, rel, resource, rev, role, snapshotTime, syncBehaviorDefault, syncToleranceDefault, timelineBegin, typeof, version, viewBox, width, xml:base, xml:id, xml:lang, xml:space, zoomAndPan a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view a, animate, animateColor, animateMotion, animateTransform, animation, audio, circle, defs, desc, discard, ellipse, font, font-face, foreignObject, g, handler, image, line, linearGradient, listener, metadata, path, polygon, polyline, prefetch, radialGradient, rect, script, set, solidColor, switch, text, textArea, title, use, video
'switch'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, transform, xml:base, xml:lang, xml:space about, class, content, datatype, externalResourcesRequired, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, xml:base, xml:id, xml:lang, xml:space a, animate, animateColor, animateMotion, animateTransform, circle, desc, ellipse, foreignObject, g, image, line, metadata, path, polygon, polyline, rect, set, svg, switch, text, title, use The 'switch' element may contain any element that its parent may contain.
'symbol'SVG11, SVGT12 class, externalResourcesRequired, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, preserveAspectRatio, style, viewBox, xml:base, xml:lang, xml:space N/A N/A a, altGlyphDef, animate, animateColor, animateMotion, animateTransform, circle, clipPath, color-profile, cursor, defs, desc, ellipse, filter, font, font-face, foreignObject, g, image, line, linearGradient, marker, mask, metadata, path, pattern, polygon, polyline, radialGradient, rect, script, set, style, svg, switch, symbol, text, title, use, view N/A
'tbreak'SVG11, SVGT12 N/A about, class, content, datatype, id, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, typeof, xml:base, xml:id, xml:lang, xml:space N/A N/A
'text'SVG11, SVGT12 class, dx, dy, externalResourcesRequired, id, lengthAdjust, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, rotate, style, systemLanguage, textLength, transform, x, xml:base, xml:lang, xml:space, y about, class, content, datatype, editable, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, rotate, systemLanguage, transform, typeof, x, xml:base, xml:id, xml:lang, xml:space, y [character data], a, altGlyph, animate, animateColor, animateMotion, animateTransform, desc, metadata, set, textPath, title, tref, tspan [character data], a, animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title, tspan
'textArea'SVG11, SVGT12 N/A about, class, content, datatype, editable, focusHighlight, focusable, height, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, width, x, xml:base, xml:id, xml:lang, xml:space, y N/A [character data], a, animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, tbreak, title, tspan
'textPath'SVG11, SVGT12 class, externalResourcesRequired, id, lengthAdjust, method, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, spacing, startOffset, style, systemLanguage, textLength, xlink:arcrole, xlink:href, xlink:role, xlink:title, xlink:type, xml:base, xml:lang, xml:space N/A N/A [character data], a, altGlyph, animate, animateColor, desc, metadata, set, title, tref, tspan N/A
'title'SVG11, SVGT12 class, id, style, xml:base, xml:lang, xml:space about, class, content, datatype, id, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, typeof, xml:base, xml:id, xml:lang, xml:space M Any elements or character data. [character data]
'tref'SVG11, SVGT12 class, dx, dy, externalResourcesRequired, id, lengthAdjust, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, rotate, style, systemLanguage, textLength, x, xlink:arcrole, xlink:href, xlink:role, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y N/A N/A animate, animateColor, desc, metadata, set, title N/A
'tspan'SVG11, SVGT12 class, dx, dy, externalResourcesRequired, id, lengthAdjust, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, rotate, style, systemLanguage, textLength, x, xml:base, xml:lang, xml:space, y about, class, content, datatype, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, typeof, xml:base, xml:id, xml:lang, xml:space [character data], a, altGlyph, animate, animateColor, desc, metadata, set, title, tref, tspan The 'tspan' element may contain any element that its parent may contain.
'use'SVG11, SVGT12 class, externalResourcesRequired, height, id, onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, requiredExtensions, requiredFeatures, style, systemLanguage, transform, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:lang, xml:space, y about, class, content, datatype, externalResourcesRequired, focusHighlight, focusable, id, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, property, rel, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, rev, role, systemLanguage, transform, typeof, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space, y animate, animateColor, animateMotion, animateTransform, desc, metadata, set, title animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'video'SVG11, SVGT12 N/A about, begin, class, content, datatype, dur, end, externalResourcesRequired, fill, focusHighlight, focusable, height, id, initialVisibility, max, min, nav-down, nav-down-left, nav-down-right, nav-left, nav-next, nav-prev, nav-right, nav-up, nav-up-left, nav-up-right, overlay, preserveAspectRatio, property, rel, repeatCount, repeatDur, requiredExtensions, requiredFeatures, requiredFonts, requiredFormats, resource, restart, rev, role, syncBehavior, syncMaster, syncTolerance, systemLanguage, transform, transformBehavior, type, typeof, width, x, xlink:actuate, xlink:arcrole, xlink:href, xlink:role, xlink:show, xlink:title, xlink:type, xml:base, xml:id, xml:lang, xml:space, y M N/A animate, animateColor, animateMotion, animateTransform, desc, discard, handler, metadata, set, switch, title
'view'SVG11, SVGT12 externalResourcesRequired, id, preserveAspectRatio, viewBox, viewTarget, xml:base, xml:lang, xml:space, zoomAndPan N/A N/A desc, metadata, title N/A
'vkern'SVG11, SVGT12 g1, g2, id, k, u1, u2, xml:base, xml:lang, xml:space N/A N/A None. N/A

SVG Attributes

This is a comprehensive list of all SVG attributes from the SVG 1.1 [SVG11] and SVG Tiny 1.2 [SVGT12] specifications.

Insert table here, with links to attributes definitions in all relevant specs, and permitted attribute values and applicable elements.

RelaxNG Schema for SVG Integration 1.0

The schema for SVG Integration 1.0 is written in RelaxNG [RelaxNG], a namespace-aware schema language that uses the datatypes from XML Schema Part 2 [Schema2]. This allows namespaces and modularity to be much more naturally expressed than using DTD syntax. The RelaxNG schema for SVG Filter 1.2 may be imported by other RelaxNG schemas, or combined with other schemas in other languages into a multi-namespace, multi-grammar schema using Namespace-based Validation Dispatching Language [NVDL].

Unlike a DTD, the schema used for validation is not hardcoded into the document instance. There is no equivalent to the DOCTYPE declaration. Simply point your editor or other validation tool to the IRI of the schema (or your local cached copy, as you prefer).

The RNG is under construction, and only the individual RNG snippets are available at this time. They have not yet been integrated into a functional schema. The individual RNG files are available here.

References

Normative References

[RFC2119]
Key words for use in RFCs to Indicate Requirement Levels, S. Bradner, March 1997.
Available at http://tools.ietf.org/html/rfc2119.
[SVG11]
Scalable Vector Graphics (SVG) 1.1, J. Ferraiolo, 藤沢 淳 (Fujisawa Jun), D. Jackson, eds. World Wide Web Consortium, 14 January 2003.
This edition of SVG 1.1 is http://www.w3.org/TR/2003/REC-SVG11-20030114/.
The latest edition of SVG 1.1 is available at http://www.w3.org/TR/SVG11/.
[SVGT12]
Scalable Vector Graphics (SVG) Tiny 1.2, O. Andersson, R. Berjon, E. Dahlström, A. Emmons, J. Ferraiolo, A. Grasso, V. Hardy, S. Hayman, D. Jackson, C. Lilley, C. McCormack, A. Neumann, C. Northway, A. Quint, N. Ramani, D. Schepers, A. Shellshear, eds. World Wide Web Consortium, 22 December 2008.
This edition of SVG Tiny 1.2 is http://www.w3.org/TR/2008/REC-SVGTiny12-20081222/.
The latest edition of SVG Tiny 1.2 is available at http://www.w3.org/TR/SVGTiny12/.

Informative References

[NVDL]
Information Technology — Document Schema Definition Languages (DSDL) — Part 4: Namespace-based Validation Dispatching Language: ISO/IEC FDIS 19757-4:2005(E), International Organization for Standardization, December 2005.
Available at http://www.jtc1sc34.org/repository/0694.pdf.
[SCHEMA2]
XML Schema Part 2: Datatypes Second Edition. P. Biron, A. Malhotra, eds. World Wide Web Consortium, 28 October 2004. (See also Processing XML 1.1 documents with XML Schema 1.0 processors [XML11-SCHEMA].)
This edition of XML Schema Part 2 is http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/.
The latest edition of XML Schema Part 2 is available at http://www.w3.org/TR/xmlschema-2/.

Acknowledgments

The editors would like to acknowledge and thank the following people for substantive aid with this specification: Erik Dahlström.