SVGDocument Properties

The SVGDocument type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
(Inherited from Node.)
Public propertyBaseURI
The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.
(Inherited from Document.)
Public propertyCharacterSet
Gets the document's encoding.
(Inherited from Document.)
Public propertyCharset
Gets the document's encoding.
(Inherited from Document.)
Public propertyChildElementCount
Returns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1.
(Inherited from Document.)
Public propertyChildNodes
A NodeList that contains all children of this node. If there are no children, this is a NodeList containing no nodes..
(Inherited from Node.)
Public propertyChildren
Returns the child elements.
(Inherited from Document.)
Public propertyContentType
Gets the document content type.
(Inherited from Document.)
Public propertyContext
Gets the current browsing context.
(Inherited from Document.)
Public propertyDefaultView
The defaultView IDL attribute of the Document interface, on getting, must return this Document's browsing context's WindowProxy object, if this Document has an associated browsing context, or null otherwise.
(Inherited from Document.)
Public propertyDoctype
The Document Type Declaration associated with this document.
(Inherited from Document.)
Public propertyDocumentElement
This is a convenience attribute that allows direct access to the child node that is the document element of the document.
(Inherited from Document.)
Public propertyDocumentURI
The location of the document or null if undefined or if the Document was created using DOMImplementation.createDocument.
(Inherited from Document.)
Public propertyDomain
The domain name of the server that served the document, or a null string if the server cannot be identified by a domain name.
Public propertyFirstChild
The first child of this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyFirstElementChild
Returns the first child element node of this element. null if this element has no child elements.
(Inherited from Document.)
Public propertyImplementation
The DOMImplementation object that handles this document.
(Inherited from Document.)
Public propertyInputEncoding
Gets the document's encoding.
(Inherited from Document.)
Public propertyLastChild
The last child of this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyLastElementChild
Returns the last child element node of this element. null if this element has no child elements.
(Inherited from Document.)
Public propertyLocalName
Returns the local part of the qualified name of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null.
(Inherited from Node.)
Public propertyLocation
The location of the document.
(Inherited from Document.)
Public propertyNamespaceURI
The namespace URI of this node, or null if it is unspecified.
(Inherited from Node.)
Public propertyNextElementSibling
Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.
(Inherited from Document.)
Public propertyNextSibling
The node immediately following this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyNodeName
The name of this node, depending on its type.
(Inherited from Document.)
Public propertyNodeType
A code representing the type of the underlying object.
(Inherited from Document.)
Public propertyNodeValue
The value of this node, depending on its type.
(Inherited from Node.)
Public propertyOrigin
Gets the document origin.
(Inherited from Document.)
Public propertyOwnerDocument
Gets the owner document.
(Inherited from Document.)
Public propertyParentElement
Gets the parent Element of this node.
(Inherited from Node.)
Public propertyParentNode
The parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.
(Inherited from Node.)
Public propertyPrefix
The namespace prefix of this node, or null if it is unspecified. When it is defined to be null, setting it has no effect
(Inherited from Node.)
Public propertyPreviousElementSibling
Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.
(Inherited from Document.)
Public propertyPreviousSibling
The node immediately preceding this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyReadyState
Returns the document readiness. The "loading" while the Document is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.
(Inherited from Document.)
Public propertyReferrer
Returns the URI of the page that linked to this page. The value is an empty string if the user navigated to the page directly (not through a link, but, for example, via a bookmark).
Public propertyRootElement
The root ‘svg’ in the document hierarchy.
Public propertyStrictErrorChecking
An attribute specifying whether error checking is enforced or not. When set to false, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any DOMException on DOM operations or report errors while using Document.normalizeDocument(). In case of error, the behavior is undefined. This attribute is true by default.
(Inherited from Document.)
Public propertyStyleSheets
A list containing all the style sheets explicitly linked into or embedded in a document. For HTML documents, this includes external style sheets, included via the HTML LINK element, and inline STYLE elements.
(Inherited from Document.)
Public propertyTextContent
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.
(Inherited from Node.)
Public propertyTitle
The title of a document as specified by the ‘title’ sub-element of the ‘svg’ root element (i.e., Here is the title...)
Public propertyURL
The complete URI of the document.
Public propertyXmlStandalone
An attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.
(Inherited from Document.)
Public propertyXmlVersion
An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". If this document does not support the "XML" feature, the value is always null.
(Inherited from Document.)
See Also