Class DTMNodeProxy
- All Implemented Interfaces:
EventTarget,Attr,CharacterData,Comment,Document,DocumentFragment,Element,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,NonElementParentNode,ParentNode,ProcessingInstruction,DocumentRange,Text,DocumentTraversal
DTMNodeProxy presents a DOM Node API front-end to the DTM model.
It does _not_ attempt to address the "node identity" question; no effort is made to prevent the creation of multiple proxies referring to a single DTM node. Users can create a mechanism for managing this, or relinquish the use of "==" and use the .sameNodeAs() mechanism, which is under consideration for future versions of the DOM.
DTMNodeProxy may be subclassed further to present specific DOM node types.
- See Also:
-
Field Summary
FieldsFields inherited from interface org.loboevolution.html.node.Document
HTML_NAMESPACE_URI, NAMESPACE_SVG, XML_NAMESPACE_URI, XMLNS_NAMESPACE_URIFields inherited from interface org.loboevolution.html.node.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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
ConstructorsConstructorDescriptionDTMNodeProxy(DTM dtm, int node) Create a DTMNodeProxy Node representing a specific Node in a DTM -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(String type, Function listener) addEventListener.voidaddEventListener(String type, Function listener, boolean useCapture) addEventListener.Moves node from another document and returns it.final NodeappendChild(Node newChild) appendChild.voidappendChildrenToCollectionImpl(NodeFilter filter, Collection<Node> collection) final voidappendData(String arg) appendData.caretRangeFromPoint(double x, double y) caretRangeFromPoint.voidclear()clear.cloneNode.final NodecloneNode(boolean deep) Returns a copy of node.voidclose()Closes an output stream and forces the sent data to display.<E extends Element>
EReturns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.shortcompareDocumentPosition(Node other) compareDocumentPosition.booleanReturns true if other is an inclusive descendant of node, and false otherwise.final AttrcreateAttribute(String name) Creates an attribute object with a specified name.final AttrcreateAttributeNS(String namespaceURI, String qualifiedName) createAttributeNS.final CDATASectioncreateCDATASection(String data) Returns a CDATASection node whose data is data.final CommentcreateComment(String data) Creates a comment object with the specified data.final DocumentFragmentCreates a new document.final ElementcreateElement(String tagName) Creates an instance of the element for the specified tag.final ElementcreateElementNS(String namespaceURI, String qualifiedName) createElementNS.createElementNS(String namespace, String qualifiedName, String options) Returns an element with namespace.final EntityReferencecreateEntityReference(String name) createEvent(String eventInterface) createEvent.createExpression.createNodeIterator(Node root) Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.createNodeIterator(Node root, int whatToShow) Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.createNodeIterator(Node root, int whatToShow, NodeFilter filter) Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.createNodeIterator(Node root, NodeFilter filter) Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.createNSResolver(Node nodeResolver) createNSResolver.final ProcessingInstructioncreateProcessingInstruction(String target, String data) Returns a ProcessingInstruction node whose target is target and data is data.Returns an empty range object that has both of its boundary points positioned at the beginning of the document.final TextcreateTextNode(String data) Creates a text string from the specified value.createTreeWalker(Node root) createTreeWalker.createTreeWalker(Node root, int whatToShow) createTreeWalker.createTreeWalker(Node root, int whatToShow, NodeFilter filter) createTreeWalker.createTreeWalker(Node root, NodeFilter filter) createTreeWalker.final voiddeleteData(int offset, int count) deleteData.booleandispatchEvent(Event evt) dispatchEvent.booleandispatchEvent(Node element, Event evt) dispatchEvent.elementFromPoint(double x, double y) Returns the element for the specified x coordinate and the specified y coordinate.final booleanfinal booleanTest for equality based on node number.evaluate(String expression, Node contextNode, XPathNSResolver resolver, short type, Object result) evaluate.booleanexecCommand(String commandId) execCommand.booleanexecCommand(String commandId, boolean showUI) execCommand.booleanexecCommand(String commandId, boolean showUI, String value) Executes a command on the current document, current selection, or the given range.voidextractDescendentsArrayImpl(NodeFilter filter, List<Node> al, boolean nestIntoMatchingNodes) Extracts all descendents that match the filter, except those descendents of nodes that match the filter.Tries to get a UINode associated with the current node.voidGets the object that has the focus when the parent document has focus.getall()Returns a reference to the collection of elements contained by the object.Retrieves a collection of all a objects that have a name and/or id property.Retrieves a collection of all applet objects in the document.getAssignedSlot.final StringgetAttribute(String name) Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.String[]Returns the qualified names of all element's attributes.final AttrgetAttributeNode(String name) getAttributeNode.final AttrgetAttributeNodeNS(String namespaceURI, String localName) getAttributeNodeNS.final StringgetAttributeNS(String namespaceURI, String localName) Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.final NamedNodeMapgetAttributes.Returns node's node document's document base URL.Deprecated.getBody()Specifies the beginning and end of the document body.getBoundingClientRect.Returns document's encoding.Gets or sets the character set used to encode the object.intgetChildElementCount.final NodeListReturns the children.Returns the child elements.Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.Returns the value of element's class content attribute.intgetClientHeight.intgetClientLeft.getClientRects.intgetClientTop.getClientWidth.getCommands.Gets a value that indicates whether standards-compliant mode is switched on for the object.Returns document's content type.Returns the HTTP cookies that apply to the Document.Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script.final StringgetData()getData.getDefaultView.Sets or gets a value that indicates whether the document can be edited.getDir()Sets or retrieves a value that indicates the reading order of the object.final DocumentTypeGets an object representing the document type declaration associated with the current document.final ElementGets a reference to the root node of the document.getDocumentItem(String name) getDocumentItem.Returns document's URL.Sets or gets the security domain of the document.getDomConfig.final intNON-DOM: Return the DTM node numberfinal ElementgetElementById(String elementId) Returns the first element within node's descendants whose ID is elementId.getElementsByClassName(String classNames) Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames.getElementsByName(String elementName) Gets a collection of objects based on the value of the NAME or ID attribute.final HTMLCollectiongetElementsByTagName(String tagname) Retrieves a collection of objects based on the specified element name.final HTMLCollectiongetElementsByTagNameNS(String namespaceURI, String localName) If namespace and localName are "*" returns a HTMLCollection of all descendant elements.Retrieves a collection of all embed objects in the document.getFeature(String name, String version) Sets or gets the foreground (text) color of the document.final NodeReturns the first child.Returns the first child that is an element, and null otherwise.getForms()Retrieves a collection, in source order, of all form objects in the document.getFullURL(String spec) getFullURL.getHead()Returns the head element.getId()Returns the value of element's id content attribute.Retrieves a collection, in source order, of img objects in the document.final DOMImplementationGets the implementation object of the current document.getInnerHTML.getInnerText.Returns the character encoding used to create the webpage that is loaded into the document object.final NodeReturns the last child.Returns the last child that is an element, and null otherwise.Gets the date that the page was last modified, if the page supplies one.final intgetLength.getLinks()Retrieves a collection of all a objects that specify the href property and all area objects in the document.final StringgetLocalName.Contains information about the current URL.final StringgetName()getName.final StringgetNamespaceURI.Returns the first following sibling that is an element, and null otherwise.final NodeReturns the next sibling.final StringReturns a string appropriate for the type of node.final intReturns the type of node.final StringgetNodeValue.Returns document's origin.getOuterHTML.final DocumentReturns the node document.final NodegetOwnerElement.Returns the parent element.getParentModelNode.final NodeReturns the parent.Return an HTMLCollection of the embed elements in the Document.final StringReturns prefix.Returns the first preceding sibling that is an element, and null otherwise.final NodeReturns the previous sibling.getPreviousTo(Node node) Retrieves a value that indicates the current state of the object.Gets the URL of the location that referred the user to the current page.getRenderState.Returns node's root.getSchemaTypeInfo.Retrieves a collection of all script objects in the document.doublegetScrollHeight.getScrollingElement.doublegetScrollLeft.doublegetScrollTop.doublegetScrollWidth.Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.getSlot()Returns the value of element's slot content attribute.booleangetStrictErrorChecking.final StringReturns the HTML-uppercased qualified name.final StringgetTarget.getTextContent.getTitle()Contains the title of the document.getURL()Sets or gets the URL for the current document.getUserData(String key) getUserData.final StringgetValue()getValue.getVisibilityState.Returns the combined data of all direct Text node siblings.getXmlEncoding.booleangetXmlStandalone.getXmlVersion.booleanhasAttribute(String name) Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.booleanhasAttributeNS(String namespaceURI, String localName) Returns true if element has an attribute whose namespace is namespace and local name is localName.booleanReturns true if element has attributes, and false otherwise.final booleanReturns whether node has children.booleanhasFocus()Gets a value indicating whether the object currently has focus.booleanhasPointerCapture(int pointerId) hasPointerCapture.final NodeimportNode(Node importedNode, boolean deep) Returns a copy of node.insertAdjacentElement(String where, Node insertedElement) insertAdjacentElement.voidinsertAdjacentHTML(String position, String text) insertAdjacentHTML.final NodeinsertBefore(Node newChild, Node refChild) insertBefore.final voidinsertData(int offset, String arg) insertData.booleanisDefaultNamespace(String namespaceURI) isDefaultNamespace.booleanisElementContentWhitespace.booleanisEqualNode(Node arg) Returns whether node and otherNode have the same properties.booleanisEqualOrDescendentOf(ModelNode otherNode) isEqualOrDescendentOf.booleanisFullscreen.booleanReturns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.booleanisHidden()isHidden.booleanisId()isId.booleanReturns true if node is connected and false otherwise.booleanisSameNode(Node other) isSameNode.booleanisSpecified.final booleanisSupported(String feature, String version) booleanisXml()lookupNamespaceURI(String specifiedPrefix) lookupNamespaceURI.lookupPrefix(String namespaceURI) lookupPrefix.booleanReturns true if matching selectors against element's root yields element, and false otherwise.final voidRemoves empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.voidnormalizeDocument.open()open.open.open.open.Opens a new window and loads a document specified by a given URL.prepend.prependChild(Node newChild) prependChild.booleanqueryCommandEnabled(String commandId) Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.booleanqueryCommandIndeterm(String commandId) Returns a Boolean value that indicates whether the specified command is in the indeterminate state.booleanqueryCommandState(String commandId) Returns a Boolean value that indicates the current state of the command.booleanqueryCommandSupported(String commandId) Returns a Boolean value that indicates whether the current command is supported on the current range.queryCommandValue(String commandId) Returns the current value of the document, range, or current selection for the given command.querySelector(String selectors) Returns the first element that is a descendant of node that matches selectors.querySelectorAll(String selectors) Returns all element descendants of node that match selectors.voidreleaseEvents.voidreleasePointerCapture(int pointerId) releasePointerCapture.final voidremoveAttribute(String name) Removes element's first attribute whose qualified name is qualifiedName.final AttrremoveAttributeNode(Attr oldAttr) removeAttributeNode.final voidremoveAttributeNS(String namespaceURI, String localName) Removes element's attribute whose namespace is namespace and local name is localName.final NoderemoveChild(Node oldChild) removeChild.voidremoveEventListener(String type, Function listener) removeEventListener.voidremoveEventListener(String type, Function listener, boolean useCapture) removeEventListener.renameNode(Node node, String namespaceURI, String qualifiedName) final NodereplaceChild(Node newChild, Node oldChild) replaceChild.final voidreplaceData(int offset, int count, String arg) replaceData.replaceWholeText(String content) replaceWholeText.voidrequestPointerLock.voidscroll(int x, int y) scroll.voidscrollBy(int x, int y) scrollBy.voidscrollIntoView.voidscrollIntoView(boolean arg) scrollIntoView.voidscrollTo(int x, int y) scrollTo.final voidsetAttribute(String name, String value) Sets the value of element's first attribute whose qualified name is qualifiedName to value.final AttrsetAttributeNode(Attr newAttr) setAttributeNode.final AttrsetAttributeNodeNS(Attr newAttr) setAttributeNodeNS.final voidsetAttributeNS(String namespaceURI, String qualifiedName, String value) Sets the value of element's attribute whose namespace is namespace and local name is localName to value.voidsetBgColor(String bgColor) setBgColor.voidsetBody(HTMLElement body) setBody.voidsetClassName(String className) setClassName.voidsetCookie.final voidsetData.voidsetDesignMode(String designMode) setDesignMode.voidsetDir.voidsetDocumentItem(String name, Object value) Sets a document item.voidsetDocumentURI(String documentURI) setDocumentURI.voidsetDomain.voidsetFgColor(String fgColor) setFgColor.voidsetId.voidsetIdAttribute(String name, boolean makeId) setIdAttribute.voidsetIdAttributeNode(Attr at, boolean makeId) setIdAttributeNode.voidsetIdAttributeNS(String namespaceURI, String localName, boolean makeId) setIdAttributeNode.voidsetInnerHTML(String innerHTML) setInnerHTML.voidsetLocation(Location location) setLocation.voidsetNamespaceURI(String namespaceURI) final voidsetNodeValue(String nodeValue) setNodeValue.voidsetOuterHTML(String outerHTML) setOuterHTML.voidsetOwnerDocument(Document document) setOwnerDocument.voidsetOwnerDocument(Document value, boolean deep) setOwnerDocument.voidsetOwnerElement(Node element) setOwnerElement.voidsetParentImpl(Node parent) setParentImpl.voidsetPointerCapture(int pointerId) setPointerCapture.final voidsetPrefix.voidsetScrollLeft(double scrollLeft) setScrollLeft.voidsetScrollTop(double scrollTop) setScrollTop.voidsetSlot.voidsetStrictErrorChecking(boolean strictErrorChecking) setStrictErrorChecking.voidsetTextContent(String textContent) setTextContent.voidsetTitle.setUserData(String key, Object data, UserDataHandler handler) setUserData.final voidsetValue.voidsetXml(boolean xml) voidsetXmlStandalone(boolean xmlStandalone) setXmlStandalone.voidsetXmlVersion(String xmlVersion) setXmlVersion.final TextsplitText(int offset) Splits data at the given offset and returns the remainder as Text node.final StringsubstringData(int offset, int count) substringData.booleantoggleAttribute(String qualifiedName) toggleAttribute.booleantoggleAttribute(String qualifiedName, boolean force) If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present.voidvisit(NodeVisitor visitor) visit.voidwarn.voidWrites one or more HTML expressions to a document in the specified window.voidWrites one or more HTML expressions, followed by a carriage return, to a document in the specified window.
-
Field Details
-
dtm
The DTM for this node. -
fDocumentURI
-
-
Constructor Details
-
DTMNodeProxy
Create a DTMNodeProxy Node representing a specific Node in a DTM- Parameters:
dtm- The DTM Reference, must be non-null.node- The DTM node handle.
-
-
Method Details
-
getDTMNodeNumber
public final int getDTMNodeNumber()NON-DOM: Return the DTM node number- Returns:
- The DTM node handle.
-
equals
Test for equality based on node number.- Parameters:
node- A DTM node proxy reference.- Returns:
- true if the given node has the same handle as this node.
-
equals
-
getNodeName
Returns a string appropriate for the type of node.- Specified by:
getNodeNamein interfaceNode- Returns:
- a
Stringobject.
-
getTarget
getTarget.
- Specified by:
getTargetin interfaceProcessingInstruction- Returns:
- a
Stringobject.
-
getClassList
Description copied from interface:ElementAllows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.- Specified by:
getClassListin interfaceElement- Returns:
- a
DOMTokenListobject.
-
getClassName
Description copied from interface:ElementReturns the value of element's class content attribute. Can be set to change it.- Specified by:
getClassNamein interfaceElement- Returns:
- a
Stringobject.
-
setClassName
Description copied from interface:ElementsetClassName.
- Specified by:
setClassNamein interfaceElement- Parameters:
className- aStringobject.
-
getClientHeight
public int getClientHeight()Description copied from interface:ElementgetClientHeight.
- Specified by:
getClientHeightin interfaceElement- Returns:
- a
Integerobject.
-
getClientLeft
public int getClientLeft()Description copied from interface:ElementgetClientLeft.
- Specified by:
getClientLeftin interfaceElement- Returns:
- a
Integerobject.
-
getClientTop
public int getClientTop()Description copied from interface:ElementgetClientTop.
- Specified by:
getClientTopin interfaceElement- Returns:
- a
Integerobject.
-
getClientWidth
Description copied from interface:ElementgetClientWidth.
- Specified by:
getClientWidthin interfaceElement- Returns:
- a
Integerobject.
-
getId
Description copied from interface:ElementReturns the value of element's id content attribute. Can be set to change it. -
setId
Description copied from interface:ElementsetId.
-
getLocalName
getLocalName.
- Specified by:
getLocalNamein interfaceAttr- Specified by:
getLocalNamein interfaceElement- Specified by:
getLocalNamein interfaceNode- Returns:
- a
Stringobject.
-
getPrefix
Returns prefix. -
getScrollHeight
public double getScrollHeight()Description copied from interface:ElementgetScrollHeight.
- Specified by:
getScrollHeightin interfaceElement- Returns:
- a double.
-
getScrollLeft
public double getScrollLeft()Description copied from interface:ElementgetScrollLeft.
- Specified by:
getScrollLeftin interfaceElement- Returns:
- a double.
-
setScrollLeft
public void setScrollLeft(double scrollLeft) Description copied from interface:ElementsetScrollLeft.
- Specified by:
setScrollLeftin interfaceElement- Parameters:
scrollLeft- aIntegerobject.
-
getScrollTop
public double getScrollTop()Description copied from interface:ElementgetScrollTop.
- Specified by:
getScrollTopin interfaceElement- Returns:
- a double.
-
setScrollTop
public void setScrollTop(double scrollTop) Description copied from interface:ElementsetScrollTop.
- Specified by:
setScrollTopin interfaceElement- Parameters:
scrollTop- aIntegerobject.
-
getScrollWidth
public double getScrollWidth()Description copied from interface:ElementgetScrollWidth.
- Specified by:
getScrollWidthin interfaceElement- Returns:
- a double.
-
getSlot
Description copied from interface:ElementReturns the value of element's slot content attribute. Can be set to change it. -
setSlot
Description copied from interface:ElementsetSlot.
-
setPrefix
setPrefix.
- Specified by:
setPrefixin interfaceNode- Parameters:
prefix- aStringobject.- Throws:
DOMException
-
getNamespaceURI
getNamespaceURI.
- Specified by:
getNamespaceURIin interfaceAttr- Specified by:
getNamespaceURIin interfaceElement- Specified by:
getNamespaceURIin interfaceNode- Returns:
- a
Stringobject.
-
getOuterHTML
Description copied from interface:ElementgetOuterHTML.
- Specified by:
getOuterHTMLin interfaceElement- Returns:
- a
Stringobject.
-
getBoundingClientRect
Description copied from interface:ElementgetBoundingClientRect.
- Specified by:
getBoundingClientRectin interfaceElement- Returns:
- a
DOMRectobject.
-
getClientRects
Description copied from interface:ElementgetClientRects.
- Specified by:
getClientRectsin interfaceElement- Returns:
- a
DOMRectListobject.
-
isSupported
- Specified by:
isSupportedin interfaceNode
-
getNodeValue
getNodeValue.
- Specified by:
getNodeValuein interfaceNode- Returns:
- a
Stringobject. - Throws:
DOMException
-
setNodeValue
setNodeValue.
- Specified by:
setNodeValuein interfaceNode- Parameters:
nodeValue- aStringobject.- Throws:
DOMException
-
getNodeType
public final int getNodeType()Returns the type of node.- Specified by:
getNodeTypein interfaceNode- Returns:
- a
Integerobject.
-
getParentNode
Returns the parent.- Specified by:
getParentNodein interfaceNode- Returns:
- a
Nodeobject.
-
getChildNodes
Returns the children.- Specified by:
getChildNodesin interfaceNode- Returns:
- a
NodeListobject.
-
getFirstChild
Returns the first child.- Specified by:
getFirstChildin interfaceNode- Returns:
- a
Nodeobject.
-
isIsConnected
public boolean isIsConnected()Description copied from interface:NodeReturns true if node is connected and false otherwise.- Specified by:
isIsConnectedin interfaceNode- Returns:
- a boolean.
-
getLastChild
Returns the last child.- Specified by:
getLastChildin interfaceNode- Returns:
- a
Nodeobject.
-
getPreviousSibling
Returns the previous sibling.- Specified by:
getPreviousSiblingin interfaceNode- Returns:
- a
Nodeobject.
-
getRootNode
Description copied from interface:NodeReturns node's root.- Specified by:
getRootNodein interfaceNode- Returns:
- a
Nodeobject.
-
getNextSibling
Returns the next sibling.- Specified by:
getNextSiblingin interfaceNode- Returns:
- a
Nodeobject.
-
getAttributes
getAttributes.
- Specified by:
getAttributesin interfaceNode- Returns:
- a
NamedNodeMapobject.
-
hasAttribute
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.- Specified by:
hasAttributein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a boolean.
-
hasAttributeNS
Returns true if element has an attribute whose namespace is namespace and local name is localName.- Specified by:
hasAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a boolean.
-
hasPointerCapture
public boolean hasPointerCapture(int pointerId) Description copied from interface:ElementhasPointerCapture.
- Specified by:
hasPointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.- Returns:
- a boolean.
-
matches
Description copied from interface:ElementReturns true if matching selectors against element's root yields element, and false otherwise. -
releasePointerCapture
public void releasePointerCapture(int pointerId) Description copied from interface:ElementreleasePointerCapture.
- Specified by:
releasePointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.
-
getOwnerDocument
Returns the node document. Returns null for documents.- Specified by:
getOwnerDocumentin interfaceNode- Returns:
- a
Documentobject.
-
setOwnerDocument
Description copied from interface:NodesetOwnerDocument.
- Specified by:
setOwnerDocumentin interfaceNode- Parameters:
document- aDocumentobject.
-
setOwnerDocument
Description copied from interface:NodesetOwnerDocument.
- Specified by:
setOwnerDocumentin interfaceNode- Parameters:
value- aDocumentobject.deep- a boolean.
-
getParentElement
Description copied from interface:NodeReturns the parent element.- Specified by:
getParentElementin interfaceNode- Returns:
- a
HTMLElementobject.
-
insertBefore
insertBefore.
- Specified by:
insertBeforein interfaceNode- Parameters:
newChild- aNodeobject.refChild- aNodeobject.- Returns:
- a
Nodeobject. - Throws:
DOMException
-
replaceChild
replaceChild.
- Specified by:
replaceChildin interfaceNode- Parameters:
newChild- aNodeobject.oldChild- aNodeobject.- Returns:
- a
Nodeobject. - Throws:
DOMException
-
removeChild
removeChild.
- Specified by:
removeChildin interfaceNode- Parameters:
oldChild- aNodeobject.- Returns:
- a
Nodeobject. - Throws:
DOMException
-
appendChild
appendChild.
- Specified by:
appendChildin interfaceNode- Parameters:
newChild- aNodeobject.- Returns:
- a
Nodeobject. - Throws:
DOMException
-
prependChild
Description copied from interface:NodeprependChild.
- Specified by:
prependChildin interfaceNode- Parameters:
newChild- aNodeobject.- Returns:
- a
Nodeobject.
-
prepend
Description copied from interface:Nodeprepend.
-
hasChildNodes
public final boolean hasChildNodes()Returns whether node has children.- Specified by:
hasChildNodesin interfaceNode- Returns:
- a boolean.
-
cloneNode
Returns a copy of node. If deep is true, the copy also includes the node's descendants. -
cloneNode
Description copied from interface:NodecloneNode.
-
getURL
Description copied from interface:DocumentSets or gets the URL for the current document. -
getActiveElement
Description copied from interface:DocumentGets the object that has the focus when the parent document has focus.- Specified by:
getActiveElementin interfaceDocument- Returns:
- a
Elementobject.
-
getall
Description copied from interface:DocumentReturns a reference to the collection of elements contained by the object.- Specified by:
getallin interfaceDocument- Returns:
- a
HTMLAllCollectionobject.
-
getAnchors
Description copied from interface:DocumentRetrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.- Specified by:
getAnchorsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getApplets
Description copied from interface:DocumentRetrieves a collection of all applet objects in the document.- Specified by:
getAppletsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getCommands
Description copied from interface:DocumentgetCommands.
- Specified by:
getCommandsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getBgColor
Description copied from interface:DocumentDeprecated. Sets or retrieves a value that indicates the background color behind the object.- Specified by:
getBgColorin interfaceDocument- Returns:
- a
Stringobject.
-
setBgColor
Description copied from interface:DocumentsetBgColor.
- Specified by:
setBgColorin interfaceDocument- Parameters:
bgColor- aStringobject.
-
getBody
Description copied from interface:DocumentSpecifies the beginning and end of the document body.- Specified by:
getBodyin interfaceDocument- Returns:
- a
HTMLElementobject.
-
setBody
Description copied from interface:DocumentsetBody.
- Specified by:
setBodyin interfaceDocument- Parameters:
body- aHTMLElementobject.
-
getCharacterSet
Description copied from interface:DocumentReturns document's encoding.- Specified by:
getCharacterSetin interfaceDocument- Returns:
- a
Stringobject.
-
getCharset
Description copied from interface:DocumentGets or sets the character set used to encode the object.- Specified by:
getCharsetin interfaceDocument- Returns:
- a
Stringobject.
-
getCompatMode
Description copied from interface:DocumentGets a value that indicates whether standards-compliant mode is switched on for the object.- Specified by:
getCompatModein interfaceDocument- Returns:
- a
Stringobject.
-
getContentType
Description copied from interface:DocumentReturns document's content type.- Specified by:
getContentTypein interfaceDocument- Returns:
- a
Stringobject.
-
getCookie
Description copied from interface:DocumentReturns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.Can be set, to add a new cookie to the element's set of HTTP cookies.
If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
-
setCookie
Description copied from interface:DocumentsetCookie.
-
getCurrentScript
Description copied from interface:DocumentReturns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
- Specified by:
getCurrentScriptin interfaceDocument- Returns:
- a
HTMLScriptElementobject.
-
getDefaultView
Description copied from interface:DocumentgetDefaultView.
- Specified by:
getDefaultViewin interfaceDocument- Returns:
- a
Windowobject.
-
getDesignMode
Description copied from interface:DocumentSets or gets a value that indicates whether the document can be edited.- Specified by:
getDesignModein interfaceDocument- Returns:
- a
Stringobject.
-
setDesignMode
Description copied from interface:DocumentsetDesignMode.
- Specified by:
setDesignModein interfaceDocument- Parameters:
designMode- aStringobject.
-
getDir
Description copied from interface:DocumentSets or retrieves a value that indicates the reading order of the object. -
setDir
Description copied from interface:DocumentsetDir.
-
getDoctype
Gets an object representing the document type declaration associated with the current document.- Specified by:
getDoctypein interfaceDocument- Returns:
- a
DocumentTypeobject.
-
getImplementation
Gets the implementation object of the current document.- Specified by:
getImplementationin interfaceDocument- Returns:
- a
DOMImplementationobject.
-
getDocumentElement
Gets a reference to the root node of the document.- Specified by:
getDocumentElementin interfaceDocument- Returns:
- a
Elementobject.
-
createElement
Creates an instance of the element for the specified tag.- Specified by:
createElementin interfaceDocument- Parameters:
tagName- The name of an element.- Returns:
- a
Elementobject. - Throws:
DOMException
-
createElementNS
Description copied from interface:DocumentReturns an element with namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
localName does not match the QName production. Namespace prefix is not null and namespace is the empty string. Namespace prefix is "xml" and namespace is not the XML namespace. qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
When supplied, options's is can be used to create a customized built-in element.
-
createDocumentFragment
Creates a new document.- Specified by:
createDocumentFragmentin interfaceDocument- Returns:
- a
DocumentFragmentobject.
-
createTextNode
Creates a text string from the specified value.- Specified by:
createTextNodein interfaceDocument- Parameters:
data- String that specifies the nodeValue property of the text node.- Returns:
- a
Textobject.
-
elementFromPoint
Description copied from interface:DocumentReturns the element for the specified x coordinate and the specified y coordinate.- Specified by:
elementFromPointin interfaceDocument- Parameters:
x- The x-offsety- The y-offset- Returns:
- a
Elementobject.
-
execCommand
Description copied from interface:DocumentExecutes a command on the current document, current selection, or the given range.- Specified by:
execCommandin interfaceDocument- Parameters:
commandId- String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.showUI- Display the user interface, defaults to false.value- Value to assign.- Returns:
- a boolean.
-
execCommand
Description copied from interface:DocumentexecCommand.
- Specified by:
execCommandin interfaceDocument- Parameters:
commandId- aStringobject.showUI- a boolean.- Returns:
- a boolean.
-
execCommand
Description copied from interface:DocumentexecCommand.
- Specified by:
execCommandin interfaceDocument- Parameters:
commandId- aStringobject.- Returns:
- a boolean.
-
createComment
Creates a comment object with the specified data.- Specified by:
createCommentin interfaceDocument- Parameters:
data- Sets the comment object's data.- Returns:
- a
Commentobject.
-
createCDATASection
Returns a CDATASection node whose data is data.- Specified by:
createCDATASectionin interfaceDocument- Parameters:
data- aStringobject.- Returns:
- a
CDATASectionobject. - Throws:
DOMException
-
createProcessingInstruction
public final ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.- Specified by:
createProcessingInstructionin interfaceDocument- Parameters:
target- aStringobject.data- aStringobject.- Returns:
- a
ProcessingInstructionobject. - Throws:
DOMException
-
createRange
Description copied from interface:DocumentRangeReturns an empty range object that has both of its boundary points positioned at the beginning of the document.- Specified by:
createRangein interfaceDocumentRange- Returns:
- a
Rangeobject.
-
createAttribute
Creates an attribute object with a specified name.- Specified by:
createAttributein interfaceDocument- Parameters:
name- String that sets the attribute object's name.- Returns:
- a
Attrobject. - Throws:
DOMException
-
createEntityReference
- Specified by:
createEntityReferencein interfaceDocument- Throws:
DOMException
-
renameNode
- Specified by:
renameNodein interfaceDocument
-
isXml
public boolean isXml() -
setXml
public void setXml(boolean xml) -
getElementsByTagName
Retrieves a collection of objects based on the specified element name.- Specified by:
getElementsByTagNamein interfaceDocument- Specified by:
getElementsByTagNamein interfaceElement- Parameters:
tagname- Specifies the name of an element.- Returns:
- a
HTMLCollectionobject.
-
importNode
Returns a copy of node. If deep is true, the copy also includes the node's descendants.If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
- Specified by:
importNodein interfaceDocument- Parameters:
importedNode- aNodeobject.deep- a boolean.- Returns:
- a
Nodeobject. - Throws:
DOMException
-
open
Description copied from interface:DocumentOpens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.- Specified by:
openin interfaceDocument- Parameters:
url- Specifies a MIME type for the document.name- Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.features- Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.replace- Specifies whether the existing entry for the document is replaced in the history list.- Returns:
- a
Documentobject.
-
open
Description copied from interface:Documentopen.
-
open
Description copied from interface:Documentopen.
-
open
Description copied from interface:Documentopen.
-
open
Description copied from interface:Documentopen.
-
queryCommandEnabled
Description copied from interface:DocumentReturns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.- Specified by:
queryCommandEnabledin interfaceDocument- Parameters:
commandId- Specifies a command identifier.- Returns:
- a boolean.
-
queryCommandIndeterm
Description copied from interface:DocumentReturns a Boolean value that indicates whether the specified command is in the indeterminate state.- Specified by:
queryCommandIndetermin interfaceDocument- Parameters:
commandId- String that specifies a command identifier.- Returns:
- a boolean.
-
queryCommandState
Description copied from interface:DocumentReturns a Boolean value that indicates the current state of the command.- Specified by:
queryCommandStatein interfaceDocument- Parameters:
commandId- String that specifies a command identifier.- Returns:
- a boolean.
-
queryCommandSupported
Description copied from interface:DocumentReturns a Boolean value that indicates whether the current command is supported on the current range.- Specified by:
queryCommandSupportedin interfaceDocument- Parameters:
commandId- Specifies a command identifier.- Returns:
- a boolean.
-
queryCommandValue
Description copied from interface:DocumentReturns the current value of the document, range, or current selection for the given command.- Specified by:
queryCommandValuein interfaceDocument- Parameters:
commandId- String that specifies a command identifier.- Returns:
- a
Stringobject.
-
releaseEvents
public void releaseEvents()Description copied from interface:DocumentreleaseEvents.
- Specified by:
releaseEventsin interfaceDocument
-
write
Description copied from interface:DocumentWrites one or more HTML expressions to a document in the specified window. -
writeln
Description copied from interface:DocumentWrites one or more HTML expressions, followed by a carriage return, to a document in the specified window. -
createElementNS
createElementNS.
- Specified by:
createElementNSin interfaceDocument- Parameters:
namespaceURI- aStringobject.qualifiedName- aStringobject.- Returns:
- a
Elementobject. - Throws:
DOMException
-
createEvent
Description copied from interface:DocumentcreateEvent.
- Specified by:
createEventin interfaceDocument- Parameters:
eventInterface- aStringobject.- Returns:
- a
Eventobject.
-
createAttributeNS
createAttributeNS.
- Specified by:
createAttributeNSin interfaceDocument- Parameters:
namespaceURI- aStringobject.qualifiedName- aStringobject.- Returns:
- a
Attrobject. - Throws:
DOMException
-
getElementsByTagNameNS
If namespace and localName are "*" returns a HTMLCollection of all descendant elements.If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
- Specified by:
getElementsByTagNameNSin interfaceDocument- Specified by:
getElementsByTagNameNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getSelection
Description copied from interface:DocumentReturns an object representing the current selection of the document that is loaded into the object displaying a webpage.- Specified by:
getSelectionin interfaceDocument- Returns:
- a
Selectionobject.
-
getElementById
Returns the first element within node's descendants whose ID is elementId. Returns a reference to the first object with the specified value of the ID or NAME attribute.- Specified by:
getElementByIdin interfaceDocument- Specified by:
getElementByIdin interfaceNonElementParentNode- Parameters:
elementId- aStringobject.- Returns:
- a
Elementobject.
-
getElementsByClassName
Description copied from interface:DocumentReturns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.- Specified by:
getElementsByClassNamein interfaceDocument- Specified by:
getElementsByClassNamein interfaceElement- Parameters:
classNames- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getElementsByName
Description copied from interface:DocumentGets a collection of objects based on the value of the NAME or ID attribute.- Specified by:
getElementsByNamein interfaceDocument- Parameters:
elementName- Gets a collection of objects based on the value of the NAME or ID attribute.- Returns:
- a
HTMLCollectionobject.
-
splitText
Splits data at the given offset and returns the remainder as Text node.- Specified by:
splitTextin interfaceText- Parameters:
offset- aIntegerobject.- Returns:
- a
Textobject. - Throws:
DOMException
-
getData
getData.
- Specified by:
getDatain interfaceCharacterData- Returns:
- a
Stringobject. - Throws:
DOMException
-
setData
setData.
- Specified by:
setDatain interfaceCharacterData- Parameters:
data- aStringobject.- Throws:
DOMException
-
getLength
public final int getLength()getLength.
- Specified by:
getLengthin interfaceCharacterData- Returns:
- a
Integerobject.
-
substringData
substringData.
- Specified by:
substringDatain interfaceCharacterData- Parameters:
offset- aIntegerobject.count- aIntegerobject.- Returns:
- a
Stringobject. - Throws:
DOMException
-
appendData
appendData.
- Specified by:
appendDatain interfaceCharacterData- Parameters:
arg- aStringobject.- Throws:
DOMException
-
insertData
insertData.
- Specified by:
insertDatain interfaceCharacterData- Parameters:
offset- aIntegerobject.arg- aStringobject.- Throws:
DOMException
-
deleteData
deleteData.
- Specified by:
deleteDatain interfaceCharacterData- Parameters:
offset- aIntegerobject.count- aIntegerobject.- Throws:
DOMException
-
replaceData
replaceData.
- Specified by:
replaceDatain interfaceCharacterData- Parameters:
offset- aIntegerobject.count- aIntegerobject.arg- aStringobject.- Throws:
DOMException
-
getTagName
Returns the HTML-uppercased qualified name.- Specified by:
getTagNamein interfaceElement- Returns:
- a
Stringobject.
-
closest
Description copied from interface:ElementReturns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. -
getAttribute
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.- Specified by:
getAttributein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a
Stringobject.
-
setAttribute
Sets the value of element's first attribute whose qualified name is qualifiedName to value.- Specified by:
setAttributein interfaceElement- Parameters:
name- aStringobject.value- aStringobject.- Throws:
DOMException
-
removeAttribute
Removes element's first attribute whose qualified name is qualifiedName.- Specified by:
removeAttributein interfaceElement- Parameters:
name- aStringobject.- Throws:
DOMException
-
getAttributeNode
getAttributeNode.
- Specified by:
getAttributeNodein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a
Attrobject.
-
setAttributeNode
setAttributeNode.
- Specified by:
setAttributeNodein interfaceElement- Parameters:
newAttr- aAttrobject.- Returns:
- a
Attrobject. - Throws:
DOMException
-
removeAttributeNode
removeAttributeNode.
- Specified by:
removeAttributeNodein interfaceElement- Parameters:
oldAttr- aAttrobject.- Returns:
- a
Attrobject. - Throws:
DOMException
-
requestPointerLock
public void requestPointerLock()Description copied from interface:ElementrequestPointerLock.
- Specified by:
requestPointerLockin interfaceElement
-
scroll
public void scroll(int x, int y) Description copied from interface:Elementscroll.
-
scrollBy
public void scrollBy(int x, int y) Description copied from interface:ElementscrollBy.
-
scrollIntoView
public void scrollIntoView(boolean arg) Description copied from interface:ElementscrollIntoView.
- Specified by:
scrollIntoViewin interfaceElement- Parameters:
arg- a boolean.
-
scrollIntoView
public void scrollIntoView()Description copied from interface:ElementscrollIntoView.
- Specified by:
scrollIntoViewin interfaceElement
-
scrollTo
public void scrollTo(int x, int y) Description copied from interface:ElementscrollTo.
-
hasAttributes
public boolean hasAttributes()Returns true if element has attributes, and false otherwise.- Specified by:
hasAttributesin interfaceNode- Returns:
- a boolean.
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
getDocumentNode
- Specified by:
getDocumentNodein interfaceNode
-
normalize
public final void normalize()Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. -
getAttributeNS
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.- Specified by:
getAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
Stringobject.
-
getAttributeNames
Description copied from interface:ElementReturns the qualified names of all element's attributes. Can contain duplicates.- Specified by:
getAttributeNamesin interfaceElement- Returns:
- an array of
Stringobjects.
-
setAttributeNS
public final void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException Sets the value of element's attribute whose namespace is namespace and local name is localName to value.- Specified by:
setAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.qualifiedName- aStringobject.value- aStringobject.- Throws:
DOMException
-
removeAttributeNS
Removes element's attribute whose namespace is namespace and local name is localName.- Specified by:
removeAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Throws:
DOMException
-
getAttributeNodeNS
getAttributeNodeNS.
- Specified by:
getAttributeNodeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
Attrobject.
-
setAttributeNodeNS
setAttributeNodeNS.
- Specified by:
setAttributeNodeNSin interfaceElement- Parameters:
newAttr- aAttrobject.- Returns:
- a
Attrobject. - Throws:
DOMException
-
getName
getName.
-
getValue
getValue.
-
setValue
setValue.
-
setOwnerElement
Description copied from interface:AttrsetOwnerElement.
- Specified by:
setOwnerElementin interfaceAttr- Parameters:
element- aNodeobject.
-
getOwnerElement
getOwnerElement.
- Specified by:
getOwnerElementin interfaceAttr- Returns:
- a
Nodeobject.
-
adoptNode
Moves node from another document and returns it.If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
- Specified by:
adoptNodein interfaceDocument- Parameters:
source- aNodeobject.- Returns:
- a
Nodeobject. - Throws:
DOMException
-
caretRangeFromPoint
Description copied from interface:DocumentcaretRangeFromPoint.
- Specified by:
caretRangeFromPointin interfaceDocument- Parameters:
x- a double.y- a double.- Returns:
- a
Rangeobject.
-
clear
public void clear()Description copied from interface:Documentclear.
-
close
public void close()Description copied from interface:DocumentCloses an output stream and forces the sent data to display. -
getInputEncoding
Returns the character encoding used to create the webpage that is loaded into the document object.- Specified by:
getInputEncodingin interfaceDocument- Returns:
- a
Stringobject.
-
getLastModified
Description copied from interface:DocumentGets the date that the page was last modified, if the page supplies one.- Specified by:
getLastModifiedin interfaceDocument- Returns:
- a
Stringobject.
-
getLinks
Description copied from interface:DocumentRetrieves a collection of all a objects that specify the href property and all area objects in the document.- Specified by:
getLinksin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getLocation
Description copied from interface:DocumentContains information about the current URL.- Specified by:
getLocationin interfaceDocument- Returns:
- a
Locationobject.
-
setLocation
Description copied from interface:DocumentsetLocation.
- Specified by:
setLocationin interfaceDocument- Parameters:
location- aLocationobject.
-
getOrigin
Description copied from interface:DocumentReturns document's origin. -
getPlugins
Description copied from interface:DocumentReturn an HTMLCollection of the embed elements in the Document.- Specified by:
getPluginsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getReadyState
Description copied from interface:DocumentRetrieves a value that indicates the current state of the object.- Specified by:
getReadyStatein interfaceDocument- Returns:
- a
DocumentReadyStateobject.
-
getReferrer
Description copied from interface:DocumentGets the URL of the location that referred the user to the current page.- Specified by:
getReferrerin interfaceDocument- Returns:
- a
Stringobject.
-
getScripts
Description copied from interface:DocumentRetrieves a collection of all script objects in the document.- Specified by:
getScriptsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getScrollingElement
Description copied from interface:DocumentgetScrollingElement.
- Specified by:
getScrollingElementin interfaceDocument- Returns:
- a
Elementobject.
-
getTitle
Description copied from interface:DocumentContains the title of the document. -
setTitle
Description copied from interface:DocumentsetTitle.
-
getVisibilityState
Description copied from interface:DocumentgetVisibilityState.
- Specified by:
getVisibilityStatein interfaceDocument- Returns:
- a
VisibilityStateobject.
-
getStrictErrorChecking
public boolean getStrictErrorChecking()getStrictErrorChecking.
- Specified by:
getStrictErrorCheckingin interfaceDocument- Returns:
- a boolean.
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking) setStrictErrorChecking.
- Specified by:
setStrictErrorCheckingin interfaceDocument- Parameters:
strictErrorChecking- a boolean.
-
getInnerHTML
Description copied from interface:ElementgetInnerHTML.
- Specified by:
getInnerHTMLin interfaceElement- Specified by:
getInnerHTMLin interfaceInnerHTML- Returns:
- a
Stringobject.
-
getInnerText
Description copied from interface:ElementgetInnerText.
- Specified by:
getInnerTextin interfaceElement- Returns:
- a
Stringobject.
-
setInnerHTML
Description copied from interface:InnerHTMLsetInnerHTML.
- Specified by:
setInnerHTMLin interfaceInnerHTML- Parameters:
innerHTML- aStringobject.
-
getNextElementSibling
Description copied from interface:NonDocumentTypeChildNodeReturns the first following sibling that is an element, and null otherwise.- Specified by:
getNextElementSiblingin interfaceNonDocumentTypeChildNode- Returns:
- a
Elementobject.
-
getPreviousElementSibling
Description copied from interface:NonDocumentTypeChildNodeReturns the first preceding sibling that is an element, and null otherwise.- Specified by:
getPreviousElementSiblingin interfaceNonDocumentTypeChildNode- Returns:
- a
Elementobject.
-
getChildElementCount
public int getChildElementCount()Description copied from interface:ParentNodegetChildElementCount.
- Specified by:
getChildElementCountin interfaceParentNode- Returns:
- a
Integerobject.
-
getChildren
Description copied from interface:ParentNodeReturns the child elements.- Specified by:
getChildrenin interfaceParentNode- Returns:
- a
HTMLCollectionobject.
-
getFirstElementChild
Description copied from interface:ParentNodeReturns the first child that is an element, and null otherwise.- Specified by:
getFirstElementChildin interfaceParentNode- Returns:
- a
Elementobject.
-
getLastElementChild
Description copied from interface:ParentNodeReturns the last child that is an element, and null otherwise.- Specified by:
getLastElementChildin interfaceParentNode- Returns:
- a
Elementobject.
-
querySelector
Description copied from interface:ParentNodeReturns the first element that is a descendant of node that matches selectors.- Specified by:
querySelectorin interfaceParentNode- Parameters:
selectors- aStringobject.- Returns:
- a
Elementobject.
-
querySelectorAll
Description copied from interface:ParentNodeReturns all element descendants of node that match selectors.- Specified by:
querySelectorAllin interfaceParentNode- Parameters:
selectors- aStringobject.- Returns:
- a
NodeListobject.
-
addEventListener
Description copied from interface:EventTargetaddEventListener.
- Specified by:
addEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.
-
addEventListener
Description copied from interface:EventTargetaddEventListener.
- Specified by:
addEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.useCapture- a boolean.
-
removeEventListener
Description copied from interface:EventTargetremoveEventListener.
- Specified by:
removeEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.
-
removeEventListener
Description copied from interface:EventTargetremoveEventListener.
- Specified by:
removeEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.useCapture- a boolean.
-
dispatchEvent
Description copied from interface:EventTargetdispatchEvent.
- Specified by:
dispatchEventin interfaceEventTarget- Parameters:
element- aNodeobject.evt- aEventobject.- Returns:
- a boolean.
-
dispatchEvent
Description copied from interface:EventTargetdispatchEvent.
- Specified by:
dispatchEventin interfaceEventTarget- Parameters:
evt- aEventobject.- Returns:
- a boolean.
- Throws:
EventException- if any.
-
createNodeIterator
Description copied from interface:DocumentTraversalCreates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.- Specified by:
createNodeIteratorin interfaceDocumentTraversal- Parameters:
root- aNodeobject.- Throws:
DOMException
-
createNodeIterator
Description copied from interface:DocumentTraversalCreates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.- Specified by:
createNodeIteratorin interfaceDocumentTraversal- Parameters:
root- aNodeobject.whatToShow- aIntegerobject.- Throws:
DOMException
-
createNodeIterator
Description copied from interface:DocumentTraversalCreates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.- Specified by:
createNodeIteratorin interfaceDocumentTraversal- Parameters:
root- aNodeobject.filter- aNodeFilterobject.- Throws:
DOMException
-
createNodeIterator
public NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter) throws DOMException Description copied from interface:DocumentTraversalCreates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.- Specified by:
createNodeIteratorin interfaceDocumentTraversal- Parameters:
root- aNodeobject.whatToShow- aIntegerobject.filter- aNodeFilterobject.- Throws:
DOMException
-
createTreeWalker
Description copied from interface:DocumentTraversalcreateTreeWalker.
- Specified by:
createTreeWalkerin interfaceDocumentTraversal- Parameters:
root- aNodeobject.- Throws:
DOMException
-
createTreeWalker
Description copied from interface:DocumentTraversalcreateTreeWalker.
- Specified by:
createTreeWalkerin interfaceDocumentTraversal- Parameters:
root- aNodeobject.whatToShow- aIntegerobject.- Throws:
DOMException
-
createTreeWalker
Description copied from interface:DocumentTraversalcreateTreeWalker.
- Specified by:
createTreeWalkerin interfaceDocumentTraversal- Parameters:
root- aNodeobject.filter- aNodeFilterobject.- Throws:
DOMException
-
createTreeWalker
public TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter) throws DOMException Description copied from interface:DocumentTraversalcreateTreeWalker.
- Specified by:
createTreeWalkerin interfaceDocumentTraversal- Parameters:
root- aNodeobject.whatToShow- aIntegerobject.filter- aNodeFilterobject.- Throws:
DOMException
-
getDocumentItem
Description copied from interface:ModelNodegetDocumentItem.
- Specified by:
getDocumentItemin interfaceModelNode- Parameters:
name- aStringobject.- Returns:
- a
Objectobject.
-
getFullURL
Description copied from interface:ModelNodegetFullURL.
- Specified by:
getFullURLin interfaceModelNode- Parameters:
spec- aStringobject.- Returns:
- a
URLobject. - Throws:
Exception- if any.
-
getParentModelNode
Description copied from interface:ModelNodegetParentModelNode.
- Specified by:
getParentModelNodein interfaceModelNode- Returns:
- a
ModelNodeobject.
-
isEqualOrDescendentOf
Description copied from interface:ModelNodeisEqualOrDescendentOf.
- Specified by:
isEqualOrDescendentOfin interfaceModelNode- Parameters:
otherNode- aModelNodeobject.- Returns:
- a boolean.
-
getRenderState
Description copied from interface:ModelNodegetRenderState.
- Specified by:
getRenderStatein interfaceModelNode
-
setDocumentItem
Description copied from interface:ModelNodeSets a document item. A radio button, for example, can use this to set button group state.- Specified by:
setDocumentItemin interfaceModelNode- Parameters:
name- aStringobject.value- aObjectobject.
-
warn
Description copied from interface:ModelNodewarn.
-
setUserData
setUserData.
- Specified by:
setUserDatain interfaceNode- Parameters:
key- aStringobject.data- aObjectobject.handler- aUserDataHandlerobject.- Returns:
- a
Objectobject.
-
setParentImpl
Description copied from interface:NodesetParentImpl.
- Specified by:
setParentImplin interfaceNode- Parameters:
parent- aNodeobject.
-
setNamespaceURI
- Specified by:
setNamespaceURIin interfaceNode
-
contains
Description copied from interface:NodeReturns true if other is an inclusive descendant of node, and false otherwise. -
getUserData
getUserData.
- Specified by:
getUserDatain interfaceNode- Parameters:
key- aStringobject.- Returns:
- a
Objectobject.
-
getPreviousTo
- Specified by:
getPreviousToin interfaceNode
-
getNextTo
-
forgetRenderState
public void forgetRenderState()- Specified by:
forgetRenderStatein interfaceNode
-
appendChildrenToCollectionImpl
- Specified by:
appendChildrenToCollectionImplin interfaceNode
-
extractDescendentsArrayImpl
public void extractDescendentsArrayImpl(NodeFilter filter, List<Node> al, boolean nestIntoMatchingNodes) Description copied from interface:NodeExtracts all descendents that match the filter, except those descendents of nodes that match the filter.- Specified by:
extractDescendentsArrayImplin interfaceNode- Parameters:
filter- aNodeFilterobject.al- aArrayListobject.
-
findUINode
Description copied from interface:NodeTries to get a UINode associated with the current node. Failing that, it tries ancestors recursively. This method will return the closest block-level renderer node, if any.- Specified by:
findUINodein interfaceNode- Returns:
- a
UINodeobject.
-
visit
Description copied from interface:Nodevisit.
- Specified by:
visitin interfaceNode- Parameters:
visitor- aNodeVisitorobject.
-
isEqualNode
Returns whether node and otherNode have the same properties.- Specified by:
isEqualNodein interfaceNode- Parameters:
arg- aNodeobject.- Returns:
- a boolean.
-
lookupNamespaceURI
lookupNamespaceURI.
- Specified by:
lookupNamespaceURIin interfaceNode- Parameters:
specifiedPrefix- aStringobject.- Returns:
- a
Stringobject.
-
isDefaultNamespace
isDefaultNamespace.
- Specified by:
isDefaultNamespacein interfaceNode- Parameters:
namespaceURI- aStringobject.- Returns:
- a boolean.
-
lookupPrefix
lookupPrefix.
- Specified by:
lookupPrefixin interfaceNode- Parameters:
namespaceURI- aStringobject.- Returns:
- a
Stringobject.
-
isSameNode
isSameNode.
- Specified by:
isSameNodein interfaceNode- Parameters:
other- aNodeobject.- Returns:
- a boolean.
-
setTextContent
setTextContent.
- Specified by:
setTextContentin interfaceNode- Parameters:
textContent- aStringobject.- Throws:
DOMException
-
getTextContent
getTextContent.
- Specified by:
getTextContentin interfaceNode- Returns:
- a
Stringobject. - Throws:
DOMException
-
compareDocumentPosition
compareDocumentPosition.
- Specified by:
compareDocumentPositionin interfaceNode- Parameters:
other- aNodeobject.- Returns:
- a short.
- Throws:
DOMException
-
getBaseURI
Returns node's node document's document base URL.- Specified by:
getBaseURIin interfaceNode- Returns:
- a
Stringobject.
-
normalizeDocument
public void normalizeDocument()normalizeDocument.
- Specified by:
normalizeDocumentin interfaceDocument
-
createExpression
Description copied from interface:DocumentcreateExpression.
- Specified by:
createExpressionin interfaceDocument- Returns:
- a
XPathExpressionobject.
-
createNSResolver
Description copied from interface:DocumentcreateNSResolver.
- Specified by:
createNSResolverin interfaceDocument- Parameters:
nodeResolver- aNodeobject.- Returns:
- a
XPathNSResolverobject.
-
evaluate
public XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, short type, Object result) Description copied from interface:Documentevaluate.
- Specified by:
evaluatein interfaceDocument- Parameters:
expression- aStringobject.contextNode- aNodeobject.resolver- aXPathNSResolverobject.type- a short.result- aObjectobject.- Returns:
- a
XPathResultobject.
-
getDomConfig
getDomConfig.
- Specified by:
getDomConfigin interfaceDocument- Returns:
- a
DOMConfigurationobject.
-
setDocumentURI
setDocumentURI.
- Specified by:
setDocumentURIin interfaceDocument- Parameters:
documentURI- aStringobject.
-
getDocumentURI
Returns document's URL.- Specified by:
getDocumentURIin interfaceDocument- Returns:
- a
Stringobject.
-
getDomain
Description copied from interface:DocumentSets or gets the security domain of the document. -
setDomain
Description copied from interface:DocumentsetDomain.
-
getEmbeds
Description copied from interface:DocumentRetrieves a collection of all embed objects in the document.- Specified by:
getEmbedsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
getFgColor
Description copied from interface:DocumentSets or gets the foreground (text) color of the document.- Specified by:
getFgColorin interfaceDocument- Returns:
- a
Stringobject.
-
setFgColor
Description copied from interface:DocumentsetFgColor.
- Specified by:
setFgColorin interfaceDocument- Parameters:
fgColor- aStringobject.
-
getForms
Description copied from interface:DocumentRetrieves a collection, in source order, of all form objects in the document.- Specified by:
getFormsin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
isFullscreen
public boolean isFullscreen()Description copied from interface:DocumentisFullscreen.
- Specified by:
isFullscreenin interfaceDocument- Returns:
- a boolean.
-
isFullscreenEnabled
public boolean isFullscreenEnabled()Description copied from interface:DocumentReturns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.- Specified by:
isFullscreenEnabledin interfaceDocument- Returns:
- a boolean.
-
getHead
Description copied from interface:DocumentReturns the head element.- Specified by:
getHeadin interfaceDocument- Returns:
- a
HTMLHeadElementobject.
-
isHidden
public boolean isHidden()Description copied from interface:DocumentisHidden.
-
getImages
Description copied from interface:DocumentRetrieves a collection, in source order, of img objects in the document.- Specified by:
getImagesin interfaceDocument- Returns:
- a
HTMLCollectionobject.
-
replaceWholeText
replaceWholeText.
- Specified by:
replaceWholeTextin interfaceText- Parameters:
content- aStringobject.- Returns:
- a
Textobject. - Throws:
DOMException
-
getAssignedSlot
Description copied from interface:TextgetAssignedSlot.
- Specified by:
getAssignedSlotin interfaceText- Returns:
- a
HTMLSlotElementobject.
-
getWholeText
Returns the combined data of all direct Text node siblings.- Specified by:
getWholeTextin interfaceText- Returns:
- a
Stringobject.
-
isElementContentWhitespace
public boolean isElementContentWhitespace()isElementContentWhitespace.
- Specified by:
isElementContentWhitespacein interfaceText- Returns:
- a boolean.
-
setIdAttribute
setIdAttribute.
- Specified by:
setIdAttributein interfaceElement- Parameters:
name- aStringobject.makeId- a boolean.
-
setIdAttributeNode
setIdAttributeNode.
- Specified by:
setIdAttributeNodein interfaceElement- Parameters:
at- aAttrobject.makeId- a boolean.
-
setIdAttributeNS
setIdAttributeNode.
- Specified by:
setIdAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.makeId- a boolean.
-
setPointerCapture
public void setPointerCapture(int pointerId) Description copied from interface:ElementsetPointerCapture.
- Specified by:
setPointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.
-
toggleAttribute
Description copied from interface:ElementIf force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.Returns true if qualifiedName is now present, and false otherwise.
- Specified by:
toggleAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.force- a boolean.- Returns:
- a boolean.
-
toggleAttribute
Description copied from interface:ElementtoggleAttribute.
- Specified by:
toggleAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.- Returns:
- a boolean.
-
insertAdjacentElement
Description copied from interface:ElementinsertAdjacentElement.
- Specified by:
insertAdjacentElementin interfaceElement- Parameters:
where- aStringobject.insertedElement-Nodeobject.- Returns:
- a
Nodeobject.
-
insertAdjacentHTML
Description copied from interface:ElementinsertAdjacentHTML.
- Specified by:
insertAdjacentHTMLin interfaceElement- Parameters:
position- aStringobject.text- aStringobject.
-
getSchemaTypeInfo
getSchemaTypeInfo.
- Specified by:
getSchemaTypeInfoin interfaceAttr- Specified by:
getSchemaTypeInfoin interfaceElement- Returns:
- a
TypeInfoobject.
-
setOuterHTML
Description copied from interface:ElementsetOuterHTML.
- Specified by:
setOuterHTMLin interfaceElement- Parameters:
outerHTML- aStringobject.
-
isSpecified
public boolean isSpecified()Description copied from interface:AttrisSpecified.
- Specified by:
isSpecifiedin interfaceAttr- Returns:
- a boolean.
-
isId
public boolean isId()isId.
-
getXmlEncoding
getXmlEncoding.
- Specified by:
getXmlEncodingin interfaceDocument- Returns:
- a
Stringobject.
-
getXmlStandalone
public boolean getXmlStandalone()getXmlStandalone.
- Specified by:
getXmlStandalonein interfaceDocument- Returns:
- a boolean.
-
setXmlStandalone
setXmlStandalone.
- Specified by:
setXmlStandalonein interfaceDocument- Parameters:
xmlStandalone- a boolean.- Throws:
DOMException
-
getXmlVersion
getXmlVersion.
- Specified by:
getXmlVersionin interfaceDocument- Returns:
- a
Stringobject.
-
setXmlVersion
setXmlVersion.
- Specified by:
setXmlVersionin interfaceDocument- Parameters:
xmlVersion- aStringobject.- Throws:
DOMException
-
hasFocus
public boolean hasFocus()Description copied from interface:DocumentGets a value indicating whether the object currently has focus.
-