public interface DOMDocument extends DOMNode, DOMNodeSelector
Modifier and Type | Interface and Description |
---|---|
static class |
DOMDocument.CRITERIA |
DOMNode.Type
Modifier and Type | Method and Description |
---|---|
DOMElement |
createElement(String tagName)
Creates an element of the type specified belonging to this document
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID- 1334481328
|
DOMRange |
createRange(DOMNode startNode,
int startOffset,
DOMNode endNode,
int endOffSet) |
DOMElement |
elementByPosition(int x,
int y)
Returns the element from the document whose elementFromPoint method is being called which is the topmost element
which lies under the given point.
|
Dimension |
getDimension()
Get the current computed dimension for this document
|
DOMElement |
getDocumentElement()
Returns the document element
|
DOMElement |
getElementById(String id)
Retrieves an element by id
|
DOMNodeList |
getElementsByName(String name)
Retrieves the list of elements by name
|
DOMNodeList |
getElementsByTagName(String tagName)
Retrieves the list of elements by tagName
|
DOMWindow |
getEnclosingWindow()
Returns the
DOMWindow object associated with the document or null if none available. |
DOMElement |
selectElementBy(DOMDocument.CRITERIA critera,
String expr)
Retrieves an element by CRITERIA.
|
appendChild, compareDocumentPosition, executeJavaScript, getAttributes, getBrowser, getChildNodes, getDOMProperty, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getXPathEvaluator, getXPathLocator, insertBefore, isDescendant, isEqualNode, isSameNode, isStale, isTextNode, isVisible, registerMutationObserver, registerMutationObserver, removeChild, replaceChild, setTextContent, toPrettyHTML, toPrettyString
addEventListener, removeEventListener
querySelector, querySelectorAll
DOMElement selectElementBy(DOMDocument.CRITERIA critera, String expr)
DOMDocument.CRITERIA.xy
the expression expected is in the form X:Y
(e.g., 200:400), that specifies the point via coordinates, in CSS pixels, relative to the upper-left-most point in
the window or frame containing the document. If the expression selects a list of elements, the first is returned.critera
- the type of query to executeexpr
- the expressionDOMElement
or null if not found.DOMElement getDocumentElement()
DOMNodeList getElementsByName(String name)
name
- DOMElement getElementById(String id)
id
- DOMNodeList getElementsByTagName(String tagName)
tagName
- DOMElement elementByPosition(int x, int y)
x
- y
- DOMWindow getEnclosingWindow()
DOMWindow
object associated with the document or null if none available. from
https://developer.mozilla.org/en/DOM/document.defaultViewDOMWindow
object associated with the document or null if none available.DOMElement createElement(String tagName)
tagName
- DOMRange createRange(DOMNode startNode, int startOffset, DOMNode endNode, int endOffSet)
Dimension getDimension()
Copyright © 2020 OXPath Team. All rights reserved.