- All Implemented Interfaces:
DOMNode
,NonDocumentTypeChildNode
,ParentNode
,CSSElement
,CSSNode
,ElementCSSInlineStyle
,Element
,Node
- Direct Known Subclasses:
HTMLElement
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Method Summary
Modifier and TypeMethodDescriptionappendChild
(Node newChild) Adds the nodenewChild
to the end of the list of children of this node.abstract DOMElement
cloneNode
(boolean deep) short
compareDocumentPosition
(Node other) boolean
Test ifnode
is an inclusive descendant of this node.Creates a new iterator descending over the child nodes, starting from the last child node.Creates a new iterator over the child elements.elementIterator
(String name) Creates a new iterator over the child elements of the given tagname.elementIteratorNS
(String namespaceURI, String localName) Creates a new iterator over the child elements of the given namespaceURI and localName.void
Export this element's non-CSS presentational hints (if any) to the suppliedCSSStyleDeclaration
.getAttribute
(String name) getAttributeNode
(String name) getAttributeNodeNS
(String namespaceURI, String localName) getAttributeNS
(String namespaceURI, String localName) int
Gets the number of child nodes of type Element that this parent node has.Get the children of this node.Gets the live ElementList containing all nodes of type Element that are children of this Element.Gives a live DOMTokenList collection of the class attributes of this element.getComputedStyle
(String pseudoElt) Gets the computed style declaration that applies to this element.getElementsByClassName
(String names) Gives a live NodeList containing all child elements which have all of the given class names under this reference element.getElementsByTagName
(String name) Gives anElementList
of all the elements descending from this context node that have the given tag name, in document order.getElementsByTagNameNS
(String namespaceURI, String localName) Gives anElementList
of all the elements descending from this context node that have the given local name and namespace URI, in document order.getFeature
(String feature, String version) Deprecated.Get the first child of this node.Gets the DOMElement that is the first child of this DOMElement.getId()
Gets theid
attribute of this element.Get the last child of this node.Gets the DOMElement that is the last child of this DOMElement.Gives the local part of the qualified name of this node.Gets the first following sibling that is an element.Get the node immediately following this node in its parent's child list.short
getOverrideStyle
(String pseudoElt) Gets this element's override style declaration for a pseudo-element.abstract DOMDocument
Get theDOMDocument
object related to this node (for all nodes exceptDocumentType
, it is the document that created it), which is also the object that should be used to create new nodes for the document.Gets the first preceding sibling that is an element.Get the node immediately preceding this node in its parent's child list.Gets a selector matcher associated to this element.getStyle()
The inline style.The name of the element (qualified if there is a namespace prefix).getUserData
(String key) boolean
hasAttribute
(String name) boolean
hasAttributeNS
(String namespaceURI, String localName) boolean
boolean
Does this node have any child nodes ?boolean
hasOverrideStyle
(String pseudoElt) Check whether this element has an override style declaration for the given pseudo-element.boolean
Check whether this element has non-CSS presentational hints.insertBefore
(Node newChild, Node refChild) Inserts the nodenewChild
right before noderefChild
in the child node list.boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) boolean
isSameNode
(Node other) boolean
isSupported
(String feature, String version) Deprecated.iterator()
Creates a new iterator over the child nodes.iterator
(int whatToShow, NodeFilter filter) Creates a new iterator over the child nodes.iterator
(NodeFilter filter) Creates a new iterator over the child nodes.Creates a new iterator over the child nodes.Creates a new list iterator over the child nodes.lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) boolean
Does this element (with the provided pseudo-element, if any) match the provided selector string ?boolean
matches
(SelectorList selist, String pseudoElement) Does this element (with the provided pseudo-element, if any) match the provided selector list ?void
prependChild
(Node newChild) querySelectorAll
(String selectors) Gets a static list of the descendant elements that match any of the specified group of selectors.void
removeAttribute
(String name) removeAttributeNode
(Attr oldAttr) void
removeAttributeNS
(String namespaceURI, String localName) removeChild
(Node oldChild) Removes the nodeoldChild
from the children of this node.replaceChild
(Node newChild, Node oldChild) Replaces the nodeoldChild
withnewChild
.void
setAttribute
(String name, String value) setAttributeNode
(Attr newAttr) setAttributeNodeNS
(Attr newAttr) void
setAttributeNS
(String namespaceURI, String qualifiedName, String value) void
setClassName
(String className) void
setNodeValue
(String nodeValue) void
void
setTextContent
(String textContent) setUserData
(String key, Object data, UserDataHandler handler) toString()
typeIterator
(short typeToShow) Creates a new iterator over the child nodes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.sf.carte.doc.dom.DOMNode
appendChild, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild
Methods inherited from interface org.w3c.dom.Element
setIdAttribute, setIdAttributeNode, setIdAttributeNS
Methods inherited from interface org.w3c.dom.Node
compareDocumentPosition, getBaseURI, getFeature, getNamespaceURI, getNodeType, getNodeValue, getPrefix, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, isSupported, normalize, setNodeValue, setPrefix, setTextContent, setUserData
Methods inherited from interface io.sf.carte.doc.dom.ParentNode
getChildNodes, prependChild
-
Method Details
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
-
getAttribute
- Specified by:
getAttribute
in interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNS
in interfaceElement
- Throws:
DOMException
-
getAttributeNode
- Specified by:
getAttributeNode
in interfaceElement
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
hasAttribute
- Specified by:
hasAttribute
in interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNS
in interfaceElement
- Throws:
DOMException
-
removeAttribute
- Specified by:
removeAttribute
in interfaceElement
- Throws:
DOMException
-
removeAttributeNS
- Specified by:
removeAttributeNS
in interfaceElement
- Throws:
DOMException
-
removeAttributeNode
- Specified by:
removeAttributeNode
in interfaceElement
- Throws:
DOMException
-
setAttribute
- Specified by:
setAttribute
in interfaceElement
- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException - Specified by:
setAttributeNS
in interfaceElement
- Throws:
DOMException
-
setAttributeNode
- Specified by:
setAttributeNode
in interfaceElement
- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
getId
Description copied from interface:CSSElement
Gets theid
attribute of this element.- Specified by:
getId
in interfaceCSSElement
- Returns:
- the
id
attribute, or the empty string if has no ID.
-
getElementsByTagNameNS
Description copied from interface:ParentNode
Gives anElementList
of all the elements descending from this context node that have the given local name and namespace URI, in document order.The list is a live collection, and changes to the document made after calling this method are reflected in the
ElementList
.The most efficient way to browse the returned list is to iterate it.
- Specified by:
getElementsByTagNameNS
in interfaceElement
- Specified by:
getElementsByTagNameNS
in interfaceParentNode
- Parameters:
namespaceURI
- the namespace URI of the elements to match on. The special value "*
" matches all namespaces.localName
- The local name of the elements to match on. The special value "*
" matches all local names.- Returns:
- the
ElementList
object containing all the matched elements.
-
getElementsByTagName
Description copied from interface:ParentNode
Gives anElementList
of all the elements descending from this context node that have the given tag name, in document order.The list is a live collection, and changes to the document made after calling this method are reflected in the
ElementList
.The most efficient way to browse the returned list is to iterate it.
- Specified by:
getElementsByTagName
in interfaceElement
- Specified by:
getElementsByTagName
in interfaceParentNode
- Parameters:
name
- The tag name of the elements to match on. The special value "*
" matches all tag names.- Returns:
- the
ElementList
object containing all the matched elements.
-
getClassList
Gives a live DOMTokenList collection of the class attributes of this element.Any modification to the returned list changes the value of the
class
attribute of this element, and vice-versa.- Returns:
- the DOMTokenList ordered collection of the class attributes of this element.
-
getElementsByClassName
Gives a live NodeList containing all child elements which have all of the given class names under this reference element.- Specified by:
getElementsByClassName
in interfaceParentNode
- Parameters:
names
- the names of the classes, separated by whitespace.- Returns:
- the live NodeList containing all child elements which have all of the given class names under this reference element.
-
getClassName
-
setClassName
-
querySelectorAll
Gets a static list of the descendant elements that match any of the specified group of selectors.Unlike methods like
getElementsByTagName(String)
orgetElementsByClassName(String)
, this is not a live list but a static one, representing the state of the document when the method was called. If no elements match, the list will be empty. This element is not included in the query.- Specified by:
querySelectorAll
in interfaceParentNode
- Parameters:
selectors
- a comma-separated list of selectors.- Returns:
- an ElementList with the elements that match any of the specified group of selectors.
-
getLocalName
Gives the local part of the qualified name of this node. For nodes of any type other thanELEMENT_NODE
andATTRIBUTE_NODE
, this is always null.- Specified by:
getLocalName
in interfaceNode
- Returns:
- the local part of the qualified name of this node, or null if this
node is not an
ELEMENT_NODE
nor anATTRIBUTE_NODE
.
-
getTagName
The name of the element (qualified if there is a namespace prefix). The name is case-preserving.- Specified by:
getTagName
in interfaceElement
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURI
in interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefix
in interfaceNode
-
getFirstElementChild
Gets the DOMElement that is the first child of this DOMElement.- Specified by:
getFirstElementChild
in interfaceParentNode
- Returns:
- the DOMElement that is the first child of this DOMElement, or null if there is none.
-
getLastElementChild
Gets the DOMElement that is the last child of this DOMElement.- Specified by:
getLastElementChild
in interfaceParentNode
- Returns:
- the DOMElement that is the last child of this DOMElement, or null if there is none.
-
getChildren
Gets the live ElementList containing all nodes of type Element that are children of this Element.- Specified by:
getChildren
in interfaceParentNode
- Returns:
- the ElementList containing all nodes of type Element that are children of this Element.
-
getChildElementCount
public int getChildElementCount()Gets the number of child nodes of type Element that this parent node has.- Specified by:
getChildElementCount
in interfaceParentNode
- Returns:
- the number of child nodes of type Element that this Element has.
-
iterator
Creates a new iterator over the child nodes.- Specified by:
iterator
in interfaceParentNode
- Returns:
- an iterator over the child nodes.
-
descendingIterator
Creates a new iterator descending over the child nodes, starting from the last child node.- Specified by:
descendingIterator
in interfaceParentNode
- Returns:
- an iterator descending over the child nodes.
-
iterator
Creates a new iterator over the child nodes.It only iterates over types set in the whatToShow bit field.
Example:
BitSet mask = new BitSet(32); mask.set(Node.ELEMENT_NODE); Iterator
it = node.iterator(mask); - Specified by:
iterator
in interfaceParentNode
- Parameters:
whatToShow
- a bit set.- Returns:
- an iterator over the child nodes.
-
elementIterator
Creates a new iterator over the child elements.- Specified by:
elementIterator
in interfaceParentNode
- Returns:
- an iterator over the child elements.
-
elementIterator
Creates a new iterator over the child elements of the given tagname.- Specified by:
elementIterator
in interfaceParentNode
- Parameters:
name
- The tag name of the child elements to match on.- Returns:
- an iterator over the child elements.
-
elementIteratorNS
Creates a new iterator over the child elements of the given namespaceURI and localName.- Specified by:
elementIteratorNS
in interfaceParentNode
- Parameters:
namespaceURI
- the namespace URI of the elements to match on.localName
- The local name of the elements to match on.- Returns:
- an iterator over the child elements.
-
iterator
Creates a new iterator over the child nodes.It only iterates over types set in the whatToShow mask that satisfy the custom
NodeFilter
.Example:
Iterator
it = node.iterator(NodeFilter.SHOW_ELEMENT, null); - Specified by:
iterator
in interfaceParentNode
- Parameters:
whatToShow
- the bit field mask to apply to the node types, seeNodeFilter
. Do not confuse this argument with theshort
argument of theParentNode.typeIterator(short)
method.filter
- the filter to use in the iteration. ifnull
, only thewhatToShow
mask filter is applied.- Returns:
- an iterator over the child nodes.
-
typeIterator
Creates a new iterator over the child nodes.Do not confuse the
typeToShow
argument with theint
argument of theParentNode.iterator(int, NodeFilter)
method, which is a bit field.- Specified by:
typeIterator
in interfaceParentNode
- Parameters:
typeToShow
- the node type to show (fromNode.getNodeType()
).- Returns:
- an iterator over the child nodes.
-
iterator
Creates a new iterator over the child nodes.It only iterates over nodes accepted by the filter.
- Specified by:
iterator
in interfaceParentNode
- Parameters:
filter
- a filter, seeNodeFilter
.- Returns:
- an iterator over the child nodes.
-
listIterator
Creates a new list iterator over the child nodes.- Specified by:
listIterator
in interfaceParentNode
- Returns:
- a list iterator over the child nodes.
-
getSelectorMatcher
Gets a selector matcher associated to this element.- Specified by:
getSelectorMatcher
in interfaceCSSElement
- Returns:
- a selector matcher associated to this element.
-
matches
Does this element (with the provided pseudo-element, if any) match the provided selector string ?- Specified by:
matches
in interfaceCSSElement
- Parameters:
selectorString
- the selector string.pseudoElement
- the pseudo-element, or null if none.- Returns:
true
if the element would be selected by the specified selector string, false otherwise.- Throws:
DOMException
- SYNTAX_ERR if there was an error parsing the selector string.
-
matches
Does this element (with the provided pseudo-element, if any) match the provided selector list ?- Specified by:
matches
in interfaceCSSElement
- Parameters:
selist
- the selector list.pseudoElement
- the pseudo-element, or null if none.- Returns:
true
if the element would be selected by at least one selector in the specified list,false
otherwise.
-
getStyle
The inline style.- Specified by:
getStyle
in interfaceCSSElement
- Specified by:
getStyle
in interfaceElementCSSInlineStyle
- Returns:
- the inline style specified by the
style
attribute, ornull
if that attribute is not present.
-
hasOverrideStyle
Check whether this element has an override style declaration for the given pseudo-element.This method allows checking for override styles without the overhead of producing and retrieving one with
CSSElement.getOverrideStyle(String)
and checking its length.- Specified by:
hasOverrideStyle
in interfaceCSSElement
- Parameters:
pseudoElt
- the pseudo-element, ornull
if none.- Returns:
true
if this element has an override style declaration forpseudoElt
.
-
getOverrideStyle
Gets this element's override style declaration for a pseudo-element.The getOverrideStyle method provides a mechanism through which a DOM author could effect immediate change to the style of an element without modifying the explicitly linked style sheets of a document or the inline style of elements.
The override style sheet comes after the author style sheet in the cascade algorithm.
- Specified by:
getOverrideStyle
in interfaceCSSElement
- Parameters:
pseudoElt
- the pseudo-element, ornull
if none.- Returns:
- the override style sheet for the given pseudo-element.
-
hasPresentationalHints
public boolean hasPresentationalHints()Check whether this element has non-CSS presentational hints.A document may contain non-CSS presentational hints (like the
width
attribute in HTML). This method can returntrue
only if this specific element do contain such hints, which can be exported to a style declaration by using theCSSElement.exportHintsToStyle(CSSStyleDeclaration)
method.- Specified by:
hasPresentationalHints
in interfaceCSSElement
- Returns:
true
if this element has presentational hints.
-
exportHintsToStyle
Export this element's non-CSS presentational hints (if any) to the suppliedCSSStyleDeclaration
.- Specified by:
exportHintsToStyle
in interfaceCSSElement
- Parameters:
style
- the style declaration to export to.
-
getComputedStyle
Gets the computed style declaration that applies to this element.- Specified by:
getComputedStyle
in interfaceCSSElement
- Parameters:
pseudoElt
- the pseudo-element name.- Returns:
- the computed style declaration.
-
cloneNode
-
getStartTag
-
toString
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfo
in interfaceElement
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()Description copied from interface:DOMNode
Does this node have any child nodes ?- Specified by:
hasChildNodes
in interfaceDOMNode
- Specified by:
hasChildNodes
in interfaceNode
- Returns:
true
if this node has child nodes,false
otherwise.
-
getPreviousElementSibling
Description copied from interface:NonDocumentTypeChildNode
Gets the first preceding sibling that is an element.- Specified by:
getPreviousElementSibling
in interfaceNonDocumentTypeChildNode
- Returns:
- the first preceding sibling that is an element, and
null
otherwise.
-
getNextElementSibling
Description copied from interface:NonDocumentTypeChildNode
Gets the first following sibling that is an element.- Specified by:
getNextElementSibling
in interfaceNonDocumentTypeChildNode
- Returns:
- the first following sibling that is an element, and
null
otherwise.
-
prependChild
- Throws:
DOMException
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
-
getParentNode
- Specified by:
getParentNode
in interfaceDOMNode
- Specified by:
getParentNode
in interfaceNode
-
getChildNodes
Description copied from interface:DOMNode
Get the children of this node.- Specified by:
getChildNodes
in interfaceDOMNode
- Specified by:
getChildNodes
in interfaceNode
- Returns:
- a
DOMNodeList
with the children of this node. If there are no children, an empty list is returned.
-
getFirstChild
Description copied from interface:DOMNode
Get the first child of this node.- Specified by:
getFirstChild
in interfaceDOMNode
- Specified by:
getFirstChild
in interfaceNode
- Returns:
- the first child of this node,
null
if has no child nodes.
-
getLastChild
Description copied from interface:DOMNode
Get the last child of this node.- Specified by:
getLastChild
in interfaceDOMNode
- Specified by:
getLastChild
in interfaceNode
- Returns:
- the last child of this node,
null
if has no child nodes.
-
getPreviousSibling
Description copied from interface:DOMNode
Get the node immediately preceding this node in its parent's child list.- Specified by:
getPreviousSibling
in interfaceDOMNode
- Specified by:
getPreviousSibling
in interfaceNode
- Returns:
- the node immediately preceding this node in the child list, or
null
if none.
-
getNextSibling
Description copied from interface:DOMNode
Get the node immediately following this node in its parent's child list.- Specified by:
getNextSibling
in interfaceDOMNode
- Specified by:
getNextSibling
in interfaceNode
- Returns:
- the node immediately following this node in the child list, or
null
if none.
-
appendChild
Description copied from interface:DOMNode
Adds the nodenewChild
to the end of the list of children of this node. If thenewChild
is already in the tree, it is first removed.- Specified by:
appendChild
in interfaceDOMNode
- Specified by:
appendChild
in interfaceNode
- Parameters:
newChild
- the node to append. If it is aDocumentFragment
object, the entire contents of the document fragment are moved into the child list of this node.- Returns:
- the appended node.
- Throws:
DOMException
- HIERARCHY_REQUEST_ERR: raised if this node is of a type that does not allow children of the type of thenewChild
node, or if the node to append is one of this node's ancestors or this node itself, or if this node is of typeDocument
and the DOM application attempts to append a secondDocumentType
orElement
node.
WRONG_DOCUMENT_ERR: ifnewChild
was created from a different document than the one that created this node.
NOT_SUPPORTED_ERR: if this implementation does not support children of the type ofnewChild
at this node.
-
insertBefore
Inserts the nodenewChild
right before noderefChild
in the child node list.- If
refChild
isnull
,newChild
is appended at the end of the child list. - If the
newChild
is already in the tree, it is first removed. - Inserting a node before itself has no effect.
- Specified by:
insertBefore
in interfaceDOMNode
- Specified by:
insertBefore
in interfaceNode
- Parameters:
newChild
- the node to put at the child node list, beforerefChild
. If it is aDocumentFragment
object, the entire contents of the document fragment are inserted into the child list of this node.refChild
- the node before whichnewChild
must be inserted.- Returns:
- the inserted node.
- Throws:
DOMException
- HIERARCHY_REQUEST_ERR: raised if this node is of a type that does not allow children of the type of thenewChild
node, or if the node to append is one of this node's ancestors or this node itself, or if this node is of typeDocument
and the DOM application attempts to append a secondDocumentType
orElement
node.
WRONG_DOCUMENT_ERR: ifnewChild
was created from a different document than the one that created this node.
NOT_FOUND_ERR: ifrefChild
is not a child of this node.
NOT_SUPPORTED_ERR: if this implementation does not support children of the type ofnewChild
at this node.
- If
-
replaceChild
Replaces the nodeoldChild
withnewChild
. If thenewChild
is already in the tree, it is first removed.Replacing a node with itself has no effect.
- Specified by:
replaceChild
in interfaceDOMNode
- Specified by:
replaceChild
in interfaceNode
- Parameters:
newChild
- the node to put at the child node list, in place ofoldChild
. If it is aDocumentFragment
object, the entire contents of the document fragment are inserted into the child list of this node.oldChild
- the node being replaced.- Returns:
- the replaced (old) node.
- Throws:
DOMException
- HIERARCHY_REQUEST_ERR: raised if this node is of a type that does not allow children of the type of thenewChild
node, or if the node to append is one of this node's ancestors or this node itself, or if this node is of typeDocument
and the DOM application attempts to append a secondDocumentType
orElement
node.
WRONG_DOCUMENT_ERR: ifnewChild
was created from a different document than the one that created this node.
NOT_FOUND_ERR: ifoldChild
is not a child of this node.
NOT_SUPPORTED_ERR: if this implementation does not support children of the type ofnewChild
at this node.
-
removeChild
Description copied from interface:DOMNode
Removes the nodeoldChild
from the children of this node.- Specified by:
removeChild
in interfaceDOMNode
- Specified by:
removeChild
in interfaceNode
- Parameters:
oldChild
- the node to remove.- Returns:
- the removed node.
- Throws:
DOMException
- NOT_FOUND_ERR: ifoldChild
is not a child of this node.
-
setUserData
- Specified by:
setUserData
in interfaceNode
-
getUserData
- Specified by:
getUserData
in interfaceNode
-
normalize
public void normalize() -
getFeature
Deprecated.This method is deprecated and not supported.- Specified by:
getFeature
in interfaceNode
- Parameters:
feature
- ignored.version
- ignored.- Returns:
null
.
-
isSupported
Deprecated.This method is not supported.- Specified by:
isSupported
in interfaceNode
- Parameters:
feature
- ignored.version
- ignored.- Returns:
- Always
true
.
-
compareDocumentPosition
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isDefaultNamespace
- Specified by:
isDefaultNamespace
in interfaceNode
-
isEqualNode
- Specified by:
isEqualNode
in interfaceNode
-
isSameNode
- Specified by:
isSameNode
in interfaceNode
-
contains
Test ifnode
is an inclusive descendant of this node.- Parameters:
node
- the node to test.- Returns:
true
ifnode
is an inclusive descendant of this node,false
otherwise (includingnode
beingnull
).
-
getOwnerDocument
Get theDOMDocument
object related to this node (for all nodes exceptDocumentType
, it is the document that created it), which is also the object that should be used to create new nodes for the document.- Specified by:
getOwnerDocument
in interfaceCSSNode
- Specified by:
getOwnerDocument
in interfaceDOMNode
- Specified by:
getOwnerDocument
in interfaceNode
- Returns:
- the
DOMDocument
object corresponding to this node. When this node is aDOMDocument
or aDocumentType
which was not added to anyDOMDocument
yet, this isnull
.
-