Class DOMElement
- All Implemented Interfaces:
DOMNode,NonDocumentTypeChildNode,ParentNode,CSSElement,CSSNode,Serializable,Element,Node
- Direct Known Subclasses:
HTMLElement
- See Also:
-
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 nodenewChildto the end of the list of children of this node.abstract DOMElementcloneNode(boolean deep) shortcompareDocumentPosition(Node other) booleanTest ifnodeis 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.voidExport 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) intGets 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 anElementListof all the elements descending from this context node that have the given tag name, in document order.getElementsByTagNameNS(String namespaceURI, String localName) Gives anElementListof 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 theidattribute of this element.Gives a representation of the text content of an element, approximately as if it was rendered according to the styling and the document language.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.shortgetOverrideStyle(Condition pseudoElt) Gets this element's override style declaration for a pseudo-element.abstract DOMDocumentGet theDOMDocumentobject 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) booleanhasAttribute(String name) booleanhasAttributeNS(String namespaceURI, String localName) booleanbooleanDoes this node have any child nodes ?booleanhasOverrideStyle(Condition pseudoElt) Check whether this element has an override style declaration for the given pseudo-element.booleanCheck whether this element has non-CSS presentational hints.insertBefore(Node newChild, Node refChild) Inserts the nodenewChildright before noderefChildin the child node list.booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanisSameNode(Node other) booleanisSupported(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) booleanmatches(SelectorList selist, Condition pseudoElement) Does this element (with the provided pseudo-element, if any) match the provided selector list ?booleanDoes this element (with the provided pseudo-element, if any) match the provided selector string ?voidprependChild(Node newChild) querySelectorAll(String selectors) Gets a static list of the descendant elements that match any of the specified group of selectors.voidRemoves all the children from this node, if any.voidremoveAttribute(String name) removeAttributeNode(Attr oldAttr) voidremoveAttributeNS(String namespaceURI, String localName) removeChild(Node oldChild) Removes the nodeoldChildfrom the children of this node.replaceChild(Node newChild, Node oldChild) Replaces the nodeoldChildwithnewChild.voidsetAttribute(String name, String value) setAttributeNode(Attr newAttr) setAttributeNodeNS(Attr newAttr) voidsetAttributeNS(String namespaceURI, String qualifiedName, String value) voidsetClassName(String className) voidsetIdAttribute(String name, boolean isId) Deprecated.voidsetIdAttributeNode(Attr idAttr, boolean isId) Deprecated.voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) Deprecated.voidsetNodeValue(String nodeValue) voidvoidsetTextContent(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, waitMethods inherited from interface io.sf.carte.doc.dom.DOMNode
appendChild, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeAllChild, removeChild, replaceChildMethods inherited from interface org.w3c.dom.Node
compareDocumentPosition, getBaseURI, getFeature, getNamespaceURI, getNodeType, getNodeValue, getPrefix, getUserData, isDefaultNamespace, isEqualNode, isSameNode, isSupported, normalize, setNodeValue, setPrefix, setTextContent, setUserDataMethods inherited from interface io.sf.carte.doc.dom.ParentNode
getChildNodes, prependChild
-
Method Details
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
getAttribute
- Specified by:
getAttributein interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNSin interfaceElement- Throws:
DOMException
-
getAttributeNode
- Specified by:
getAttributeNodein interfaceElement
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNSin interfaceElement- Throws:
DOMException
-
hasAttribute
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNSin interfaceElement- Throws:
DOMException
-
removeAttribute
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
removeAttributeNS
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
removeAttributeNode
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
setAttribute
- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException - Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException
-
setAttributeNode
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
getId
Description copied from interface:CSSElementGets theidattribute of this element.- Specified by:
getIdin interfaceCSSElement- Returns:
- the
idattribute, or the empty string if has no ID.
-
setIdAttribute
Deprecated.- Specified by:
setIdAttributein interfaceElement
-
setIdAttributeNS
Deprecated.- Specified by:
setIdAttributeNSin interfaceElement
-
setIdAttributeNode
Deprecated.- Specified by:
setIdAttributeNodein interfaceElement
-
getElementsByTagNameNS
Description copied from interface:ParentNodeGives anElementListof 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:
getElementsByTagNameNSin interfaceElement- Specified by:
getElementsByTagNameNSin 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
ElementListobject containing all the matched elements.
-
getElementsByTagName
Description copied from interface:ParentNodeGives anElementListof 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:
getElementsByTagNamein interfaceElement- Specified by:
getElementsByTagNamein interfaceParentNode- Parameters:
name- The tag name of the elements to match on. The special value "*" matches all tag names.- Returns:
- the
ElementListobject 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
classattribute 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:
getElementsByClassNamein 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:
querySelectorAllin 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_NODEandATTRIBUTE_NODE, this is always null.- Specified by:
getLocalNamein interfaceNode- Returns:
- the local part of the qualified name of this node, or null if this
node is not an
ELEMENT_NODEnor anATTRIBUTE_NODE.
-
getTagName
The name of the element (qualified if there is a namespace prefix). The name is case-preserving.- Specified by:
getTagNamein interfaceElement
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
getFirstElementChild
Gets the DOMElement that is the first child of this DOMElement.- Specified by:
getFirstElementChildin 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:
getLastElementChildin 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:
getChildrenin 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:
getChildElementCountin 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:
iteratorin 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:
descendingIteratorin 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<Node> it = node.iterator(mask);- Specified by:
iteratorin interfaceParentNode- Parameters:
whatToShow- a bit set.- Returns:
- an iterator over the child nodes.
-
elementIterator
Creates a new iterator over the child elements.- Specified by:
elementIteratorin interfaceParentNode- Returns:
- an iterator over the child elements.
-
elementIterator
Creates a new iterator over the child elements of the given tagname.- Specified by:
elementIteratorin 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:
elementIteratorNSin 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<Node> it = node.iterator(NodeFilter.SHOW_ELEMENT, null);
- Specified by:
iteratorin interfaceParentNode- Parameters:
whatToShow- the bit field mask to apply to the node types, seeNodeFilter. Do not confuse this argument with theshortargument of theParentNode.typeIterator(short)method.filter- the filter to use in the iteration. ifnull, only thewhatToShowmask filter is applied.- Returns:
- an iterator over the child nodes.
-
typeIterator
Creates a new iterator over the child nodes.Do not confuse the
typeToShowargument with theintargument of theParentNode.iterator(int, NodeFilter)method, which is a bit field.- Specified by:
typeIteratorin 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:
iteratorin 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:
listIteratorin interfaceParentNode- Returns:
- a list iterator over the child nodes.
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
getInnerText
Gives a representation of the text content of an element, approximately as if it was rendered according to the styling and the document language.This method is computationally more expensive than
getTextContent().- Returns:
- a representation of the text content of an element.
- Throws:
StyleDatabaseRequiredException- if style computations require a style database which is not present.
-
getSelectorMatcher
Gets a selector matcher associated to this element.- Specified by:
getSelectorMatcherin 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:
matchesin interfaceCSSElement- Parameters:
selectorString- the selector string.pseudoElement- the pseudo-element, or null if none.- Returns:
trueif 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:
matchesin interfaceCSSElement- Parameters:
selist- the selector list.pseudoElement- the pseudo-element condition, ornullif none.- Returns:
trueif the element would be selected by at least one selector in the specified list,falseotherwise.
-
getStyle
The inline style.- Specified by:
getStylein interfaceCSSElement- Returns:
- the inline style specified by the
styleattribute, ornullif 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(Condition)and checking its length.- Specified by:
hasOverrideStylein interfaceCSSElement- Parameters:
pseudoElt- the pseudo-element condition, ornullif none.- Returns:
trueif 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:
getOverrideStylein interfaceCSSElement- Parameters:
pseudoElt- the pseudo-element condition, ornullif 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
widthattribute in HTML). This method can returntrueonly if this specific element do contain such hints, which can be exported to a style declaration by using theCSSElement.exportHintsToStyle(CSSStyleDeclaration)method.- Specified by:
hasPresentationalHintsin interfaceCSSElement- Returns:
trueif this element has presentational hints.
-
exportHintsToStyle
Export this element's non-CSS presentational hints (if any) to the suppliedCSSStyleDeclaration.- Specified by:
exportHintsToStylein interfaceCSSElement- Parameters:
style- the style declaration to export to.
-
getComputedStyle
Gets the computed style declaration that applies to this element.- Specified by:
getComputedStylein interfaceCSSElement- Parameters:
pseudoElt- the pseudo-element name.- Returns:
- the computed style declaration.
-
cloneNode
-
getStartTag
-
toString
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfoin interfaceElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()Description copied from interface:DOMNodeDoes this node have any child nodes ?- Specified by:
hasChildNodesin interfaceDOMNode- Specified by:
hasChildNodesin interfaceNode- Returns:
trueif this node has child nodes,falseotherwise.
-
getPreviousElementSibling
Description copied from interface:NonDocumentTypeChildNodeGets the first preceding sibling that is an element.- Specified by:
getPreviousElementSiblingin interfaceNonDocumentTypeChildNode- Returns:
- the first preceding sibling that is an element, and
nullotherwise.
-
getNextElementSibling
Description copied from interface:NonDocumentTypeChildNodeGets the first following sibling that is an element.- Specified by:
getNextElementSiblingin interfaceNonDocumentTypeChildNode- Returns:
- the first following sibling that is an element, and
nullotherwise.
-
prependChild
- Throws:
DOMException
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getParentNode
- Specified by:
getParentNodein interfaceDOMNode- Specified by:
getParentNodein interfaceNode
-
getChildNodes
Description copied from interface:DOMNodeGet the children of this node.- Specified by:
getChildNodesin interfaceDOMNode- Specified by:
getChildNodesin interfaceNode- Returns:
- a
DOMNodeListwith the children of this node. If there are no children, an empty list is returned.
-
getFirstChild
Description copied from interface:DOMNodeGet the first child of this node.- Specified by:
getFirstChildin interfaceDOMNode- Specified by:
getFirstChildin interfaceNode- Returns:
- the first child of this node,
nullif has no child nodes.
-
getLastChild
Description copied from interface:DOMNodeGet the last child of this node.- Specified by:
getLastChildin interfaceDOMNode- Specified by:
getLastChildin interfaceNode- Returns:
- the last child of this node,
nullif has no child nodes.
-
getPreviousSibling
Description copied from interface:DOMNodeGet the node immediately preceding this node in its parent's child list.- Specified by:
getPreviousSiblingin interfaceDOMNode- Specified by:
getPreviousSiblingin interfaceNode- Returns:
- the node immediately preceding this node in the child list, or
nullif none.
-
getNextSibling
Description copied from interface:DOMNodeGet the node immediately following this node in its parent's child list.- Specified by:
getNextSiblingin interfaceDOMNode- Specified by:
getNextSiblingin interfaceNode- Returns:
- the node immediately following this node in the child list, or
nullif none.
-
appendChild
Description copied from interface:DOMNodeAdds the nodenewChildto the end of the list of children of this node. If thenewChildis already in the tree, it is first removed.- Specified by:
appendChildin interfaceDOMNode- Specified by:
appendChildin interfaceNode- Parameters:
newChild- the node to append. If it is aDocumentFragmentobject, 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 thenewChildnode, or if the node to append is one of this node's ancestors or this node itself, or if this node is of typeDocumentand the DOM application attempts to append a secondDocumentTypeorElementnode.
WRONG_DOCUMENT_ERR: ifnewChildwas 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 ofnewChildat this node.
-
insertBefore
Inserts the nodenewChildright before noderefChildin the child node list.- If
refChildisnull,newChildis appended at the end of the child list. - If the
newChildis already in the tree, it is first removed. - Inserting a node before itself has no effect.
- Specified by:
insertBeforein interfaceDOMNode- Specified by:
insertBeforein interfaceNode- Parameters:
newChild- the node to put at the child node list, beforerefChild. If it is aDocumentFragmentobject, the entire contents of the document fragment are inserted into the child list of this node.refChild- the node before whichnewChildmust 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 thenewChildnode, or if the node to append is one of this node's ancestors or this node itself, or if this node is of typeDocumentand the DOM application attempts to append a secondDocumentTypeorElementnode.
WRONG_DOCUMENT_ERR: ifnewChildwas created from a different document than the one that created this node.
NOT_FOUND_ERR: ifrefChildis not a child of this node.
NOT_SUPPORTED_ERR: if this implementation does not support children of the type ofnewChildat this node.
- If
-
replaceChild
Replaces the nodeoldChildwithnewChild. If thenewChildis already in the tree, it is first removed.Replacing a node with itself has no effect.
- Specified by:
replaceChildin interfaceDOMNode- Specified by:
replaceChildin interfaceNode- Parameters:
newChild- the node to put at the child node list, in place ofoldChild. If it is aDocumentFragmentobject, 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 thenewChildnode, or if the node to append is one of this node's ancestors or this node itself, or if this node is of typeDocumentand the DOM application attempts to append a secondDocumentTypeorElementnode.
WRONG_DOCUMENT_ERR: ifnewChildwas created from a different document than the one that created this node.
NOT_FOUND_ERR: ifoldChildis not a child of this node.
NOT_SUPPORTED_ERR: if this implementation does not support children of the type ofnewChildat this node.
-
removeChild
Description copied from interface:DOMNodeRemoves the nodeoldChildfrom the children of this node.- Specified by:
removeChildin interfaceDOMNode- Specified by:
removeChildin interfaceNode- Parameters:
oldChild- the node to remove.- Returns:
- the removed node.
- Throws:
DOMException- NOT_FOUND_ERR: ifoldChildis not a child of this node.
-
removeAllChild
public void removeAllChild()Description copied from interface:DOMNodeRemoves all the children from this node, if any.- Specified by:
removeAllChildin interfaceDOMNode
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-
normalize
public void normalize() -
getFeature
Deprecated.This method is deprecated and not supported.- Specified by:
getFeaturein interfaceNode- Parameters:
feature- ignored.version- ignored.- Returns:
null.
-
isSupported
Deprecated.This method is not supported.- Specified by:
isSupportedin interfaceNode- Parameters:
feature- ignored.version- ignored.- Returns:
- Always
true.
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
contains
Test ifnodeis an inclusive descendant of this node.- Parameters:
node- the node to test.- Returns:
trueifnodeis an inclusive descendant of this node,falseotherwise (includingnodebeingnull).
-
getOwnerDocument
Get theDOMDocumentobject 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:
getOwnerDocumentin interfaceCSSNode- Specified by:
getOwnerDocumentin interfaceDOMNode- Specified by:
getOwnerDocumentin interfaceNode- Returns:
- the
DOMDocumentobject corresponding to this node. When this node is aDOMDocumentor aDocumentTypewhich was not added to anyDOMDocumentyet, this isnull.
-