Package | Description |
---|---|
org.htmlunit |
Framework classes (contains the
WebClient
class which is the main entry point). |
org.htmlunit.css |
Classes supporting Cascading Style Sheets.
|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.html.impl |
Contains some implementation classes that have to be public to be used internally in different packages
but that shouldn't be used directly by HtmlUnit users.
|
org.htmlunit.html.parser |
Contains the html parser interface.
|
org.htmlunit.html.parser.neko |
Contains the neko html parser.
|
org.htmlunit.html.serializer |
Contains the html serializer implementations.
|
org.htmlunit.html.xpath |
XPath adapter implementation for the HtmlUnit DOM.
|
org.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.dom |
Implementations of the DOM JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.event |
Implementations of the JavaScript host objects for events - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.html |
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.xml |
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.platform.dom.traversal |
Support for platform specific implementations (e.g. for Android).
|
org.htmlunit.svg |
Classes specific to Scalable Vector Graphics.
|
org.htmlunit.util |
Miscellaneous utilities.
|
org.htmlunit.xml |
Classes specific to XML pages.
|
Modifier and Type | Class and Description |
---|---|
class |
SgmlPage
A basic class of Standard Generalized Markup Language (SGML), e.g.
|
Modifier and Type | Method and Description |
---|---|
static void |
CssStyleSheet.validateSelectors(org.htmlunit.cssparser.parser.selector.SelectorList selectorList,
DomNode domNode)
Validates the list of selectors.
|
static void |
CssStyleSheet.validateSelectors(org.htmlunit.cssparser.parser.selector.SelectorList selectorList,
int documentMode,
DomNode domNode)
Deprecated.
as of version 4.5.0; use
CssStyleSheet.validateSelectors(SelectorList, DomNode) instead |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDomNodeList<E extends DomNode>
A generic DomNodeList implementation of
NodeList . |
protected class |
DomNode.DescendantElementsIterator<T extends DomNode>
Iterates over all descendants of a specific type, in document order.
|
interface |
DomNodeList<E extends DomNode>
|
Modifier and Type | Class and Description |
---|---|
class |
BaseFrameElement
Base class for frame and iframe.
|
class |
DomAttr
An attribute of an element.
|
class |
DomCDataSection
Representation of a CDATA node in the HTML DOM.
|
class |
DomCharacterData
Wrapper for the DOM node CharacterData.
|
class |
DomComment
Wrapper for the DOM node Comment.
|
class |
DomDocumentFragment
A DOM object for DocumentFragment.
|
class |
DomDocumentType
A DOM object for DocumentType.
|
class |
DomElement |
class |
DomNamespaceNode
Intermediate base class for DOM Nodes that have namespaces.
|
class |
DomProcessingInstruction
Wrapper for the DOM node ProcessingInstruction.
|
class |
DomText
Representation of a text node in the HTML DOM.
|
class |
HtmlAbbreviated
Wrapper for the HTML element "abbr".
|
class |
HtmlAcronym
Wrapper for the HTML element "acronym".
|
class |
HtmlAddress
Wrapper for the HTML element "address".
|
class |
HtmlAnchor
Wrapper for the HTML element "a".
|
class |
HtmlArea
Wrapper for the HTML element "area".
|
class |
HtmlArticle
Wrapper for the HTML element "article".
|
class |
HtmlAside
Wrapper for the HTML element "aside".
|
class |
HtmlAudio
Wrapper for the HTML element "Audio".
|
class |
HtmlBackgroundSound
Wrapper for the HTML element "bgsound".
|
class |
HtmlBase
Wrapper for the HTML element "base".
|
class |
HtmlBaseFont
Wrapper for the HTML element "basefont".
|
class |
HtmlBidirectionalIsolation
Wrapper for the HTML element "bdi".
|
class |
HtmlBidirectionalOverride
Wrapper for the HTML element "bdo".
|
class |
HtmlBig
Wrapper for the HTML element "big".
|
class |
HtmlBlockQuote
Wrapper for the HTML element "blockquote".
|
class |
HtmlBody
Wrapper for the HTML element "body".
|
class |
HtmlBold
Wrapper for the HTML element "b".
|
class |
HtmlBreak
Wrapper for the HTML element "br".
|
class |
HtmlButton
Wrapper for the HTML element "button".
|
class |
HtmlButtonInput
Wrapper for the HTML element "input" where type is "button".
|
class |
HtmlCanvas
Wrapper for the HTML element "canvas".
|
class |
HtmlCaption
Wrapper for the HTML element "caption".
|
class |
HtmlCenter
Wrapper for the HTML element "center".
|
class |
HtmlCheckBoxInput
Wrapper for the HTML element "input".
|
class |
HtmlCitation
Wrapper for the HTML element "cite".
|
class |
HtmlCode
Wrapper for the HTML element "code".
|
class |
HtmlColorInput
Wrapper for the HTML element "input" where type is "color".
|
class |
HtmlData
Wrapper for the HTML element "data".
|
class |
HtmlDataList
Wrapper for the HTML element "datalist".
|
class |
HtmlDateInput
Wrapper for the HTML element "input" where type is "date".
|
class |
HtmlDateTimeLocalInput
Wrapper for the HTML element "input" where type is "datetime-local".
|
class |
HtmlDefinition
Wrapper for the HTML element "dfn".
|
class |
HtmlDefinitionDescription
Wrapper for the HTML element "dd".
|
class |
HtmlDefinitionList
Wrapper for the HTML element "dl".
|
class |
HtmlDefinitionTerm
Wrapper for the HTML element "dt".
|
class |
HtmlDeletedText
Wrapper for the HTML element "del".
|
class |
HtmlDetails
Wrapper for the HTML element "details".
|
class |
HtmlDialog
Wrapper for the HTML element "dialog".
|
class |
HtmlDirectory
Wrapper for the HTML element "dir".
|
class |
HtmlDivision
Wrapper for the HTML element "div".
|
class |
HtmlElement
An abstract wrapper for HTML elements.
|
class |
HtmlEmailInput
Wrapper for the HTML element "input" where type is "email".
|
class |
HtmlEmbed
Wrapper for the HTML element "embed".
|
class |
HtmlEmphasis
Wrapper for the HTML element "em".
|
class |
HtmlExample
Wrapper for the HTML element "xmp".
|
class |
HtmlFieldSet
Wrapper for the HTML element "fieldset".
|
class |
HtmlFigure
Wrapper for the HTML element "figure".
|
class |
HtmlFigureCaption
Wrapper for the HTML element "figcaption".
|
class |
HtmlFileInput
Wrapper for the HTML element "input".
|
class |
HtmlFont
Wrapper for the HTML element "font".
|
class |
HtmlFooter
Wrapper for the HTML element "footer".
|
class |
HtmlForm
Wrapper for the HTML element "form".
|
class |
HtmlFrame
Wrapper for the HTML element "frame".
|
class |
HtmlFrameSet
Wrapper for the HTML element "frameset".
|
class |
HtmlHead
Wrapper for the HTML element "head".
|
class |
HtmlHeader
Wrapper for the HTML element "header".
|
class |
HtmlHeading1
Wrapper for the HTML element "h1".
|
class |
HtmlHeading2
Wrapper for the HTML element "h2".
|
class |
HtmlHeading3
Wrapper for the HTML element "h3".
|
class |
HtmlHeading4
Wrapper for the HTML element "h4".
|
class |
HtmlHeading5
Wrapper for the HTML element "h5".
|
class |
HtmlHeading6
Wrapper for the HTML element "h6".
|
class |
HtmlHiddenInput
Wrapper for the HTML element "input" of type "hidden".
|
class |
HtmlHorizontalRule
Wrapper for the HTML element "hr".
|
class |
HtmlHtml
A representation of an HTML element "html".
|
class |
HtmlImage
Wrapper for the HTML element "img".
|
class |
HtmlImageInput
Wrapper for the HTML element "input".
|
class |
HtmlInlineFrame
Wrapper for the HTML element "iframe".
|
class |
HtmlInlineQuotation
Wrapper for the HTML element "q".
|
class |
HtmlInput
Wrapper for the HTML element "input".
|
class |
HtmlInsertedText
Wrapper for the HTML element "ins".
|
class |
HtmlItalic
Wrapper for the HTML element "i".
|
class |
HtmlKeyboard
Wrapper for the HTML element "kbd".
|
class |
HtmlLabel
Wrapper for the HTML element "label".
|
class |
HtmlLayer
Wrapper for the HTML element "layer".
|
class |
HtmlLegend
Wrapper for the HTML element "legend".
|
class |
HtmlLink
Wrapper for the HTML element "link".
|
class |
HtmlListing
Wrapper for the HTML element "listing".
|
class |
HtmlListItem
Wrapper for the HTML element "li".
|
class |
HtmlMain
Wrapper for the HTML element "main".
|
class |
HtmlMap
Wrapper for the HTML element "map".
|
class |
HtmlMark
Wrapper for the HTML element "mark".
|
class |
HtmlMarquee
Wrapper for the HTML element "marquee".
|
class |
HtmlMedia
HTML Media element, e.g.
|
class |
HtmlMenu
Wrapper for the HTML element "menu".
|
class |
HtmlMeta
Wrapper for the HTML element "meta".
|
class |
HtmlMeter
HTML 5 "meter" element.
|
class |
HtmlMonthInput
Wrapper for the HTML element "input" where type is "month".
|
class |
HtmlNav
Wrapper for the HTML element "nav".
|
class |
HtmlNoBreak
Wrapper for the HTML element "nobr".
|
class |
HtmlNoEmbed
Wrapper for the HTML element "noembed".
|
class |
HtmlNoFrames
Wrapper for the HTML element "noframes".
|
class |
HtmlNoLayer
Wrapper for the HTML element "nolayer".
|
class |
HtmlNoScript
Wrapper for the HTML element "noscript".
|
class |
HtmlNumberInput
Wrapper for the HTML element "input" with type is "number".
|
class |
HtmlObject
Wrapper for the HTML element "object".
|
class |
HtmlOption
Wrapper for the HTML element "option".
|
class |
HtmlOptionGroup
Wrapper for the HTML element "optgroup".
|
class |
HtmlOrderedList
Wrapper for the HTML element "ol".
|
class |
HtmlOutput
Wrapper for the HTML element "output".
|
class |
HtmlPage
A representation of an HTML page returned from a server.
|
class |
HtmlParagraph
Wrapper for the HTML element "p".
|
class |
HtmlParameter
Wrapper for the HTML element "param".
|
class |
HtmlPasswordInput
Wrapper for the HTML element "input".
|
class |
HtmlPicture
Wrapper for the HTML element "picture".
|
class |
HtmlPlainText
Wrapper for the HTML element "plaintext".
|
class |
HtmlPreformattedText
Wrapper for the HTML element "pre".
|
class |
HtmlProgress
Wrapper for the HTML element "progress".
|
class |
HtmlRadioButtonInput
Wrapper for the HTML element "input".
|
class |
HtmlRangeInput
Wrapper for the HTML element "input" where type is "range".
|
class |
HtmlRb
Wrapper for the HTML element "rb".
|
class |
HtmlResetInput
Wrapper for the HTML element "input".
|
class |
HtmlRp
Wrapper for the HTML element "rp".
|
class |
HtmlRt
Wrapper for the HTML element "rt".
|
class |
HtmlRtc
Wrapper for the HTML element "rtc".
|
class |
HtmlRuby
Wrapper for the HTML element "ruby".
|
class |
HtmlS
Wrapper for the HTML element "s", a strike-through text style.
|
class |
HtmlSample
Wrapper for the HTML element "samp".
|
class |
HtmlScript
Wrapper for the HTML element "script".
|
class |
HtmlSearchInput
Wrapper for the HTML element "input" where type is "search".
|
class |
HtmlSection
Wrapper for the HTML element "section".
|
class |
HtmlSelect
Wrapper for the HTML element "select".
|
class |
HtmlSelectableTextInput
Abstract parent class to share
SelectableTextInput implementation
and typing support. |
class |
HtmlSlot
Wrapper for the HTML element "slot".
|
class |
HtmlSmall
Wrapper for the HTML element "small".
|
class |
HtmlSource
Wrapper for the HTML element "source".
|
class |
HtmlSpan
Wrapper for the HTML element "span".
|
class |
HtmlStrike
Wrapper for the HTML element "strike".
|
class |
HtmlStrong
Wrapper for the HTML element "strong".
|
class |
HtmlStyle
Wrapper for the HTML element "style".
|
class |
HtmlSubmitInput
Wrapper for the HTML element "input".
|
class |
HtmlSubscript
Wrapper for the HTML element "sub".
|
class |
HtmlSummary
Wrapper for the HTML element "summary".
|
class |
HtmlSuperscript
Wrapper for the HTML element "sup".
|
class |
HtmlSvg
Wrapper for the SVG element
svg . |
class |
HtmlTable
Wrapper for the HTML element "table".
|
class |
HtmlTableBody
Wrapper for the HTML element "tbody".
|
class |
HtmlTableCell
An abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell.
|
class |
HtmlTableColumn
Wrapper for the HTML element "col".
|
class |
HtmlTableColumnGroup
Wrapper for the HTML element "colgroup".
|
class |
HtmlTableDataCell
Wrapper for the HTML element "td".
|
class |
HtmlTableFooter
Wrapper for the HTML element "tfoot".
|
class |
HtmlTableHeader
Wrapper for the HTML element "thead".
|
class |
HtmlTableHeaderCell
Wrapper for the HTML "th" tag.
|
class |
HtmlTableRow
Wrapper for the HTML element "tr".
|
class |
HtmlTeletype
Wrapper for the HTML element "tt".
|
class |
HtmlTelInput
Wrapper for the HTML element "input" where type is "tel".
|
class |
HtmlTemplate
Wrapper for the HTML element "template".
|
class |
HtmlTextArea
Wrapper for the HTML element "textarea".
|
class |
HtmlTextInput
Wrapper for the HTML element "input" with type="text".
|
class |
HtmlTime
Wrapper for the HTML element "time".
|
class |
HtmlTimeInput
Wrapper for the HTML element "input" where type is "time".
|
class |
HtmlTitle
Wrapper for the HTML element "title".
|
class |
HtmlTrack
Wrapper for the HTML element "track".
|
class |
HtmlUnderlined
Wrapper for the HTML element "u".
|
class |
HtmlUnknownElement
An element that is returned for an HTML tag that is not supported by this framework.
|
class |
HtmlUnorderedList
Wrapper for the HTML element "ul".
|
class |
HtmlUrlInput
Wrapper for the HTML element "input" where type is "url".
|
class |
HtmlVariable
Wrapper for the HTML element "var".
|
class |
HtmlVideo
Wrapper for the HTML element "video".
|
class |
HtmlWeekInput
Wrapper for the HTML element "input" where type is "week".
|
class |
HtmlWordBreak
Wrapper for the HTML element "wbr".
|
class |
TableRowGroup
Superclass for the wrappers for the HTML elements "thead", "tbody" and "tfoot".
|
class |
XHtmlPage
A representation of an XHTML page returned from a server.
|
Modifier and Type | Method and Description |
---|---|
<N extends DomNode> |
DomNode.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
HtmlSelect.appendChild(Node node) |
DomNode |
DomNode.appendChild(Node node) |
DomNode |
HtmlTextArea.cloneNode(boolean deep) |
DomNode |
HtmlSelectableTextInput.cloneNode(boolean deep) |
DomNode |
HtmlInput.cloneNode(boolean deep) |
DomNode |
HtmlElement.cloneNode(boolean deep) |
DomNode |
DomText.cloneNode(boolean deep) |
DomNode |
DomNode.cloneNode(boolean deep) |
DomNode |
DomElement.cloneNode(boolean deep) |
DomNode |
BaseFrameElement.cloneNode(boolean deep)
Creates a new
WebWindow for the new clone. |
DomNode |
HtmlDomTreeWalker.firstChild() |
DomNode |
DomChangeEvent.getChangedNode()
Returns the node that has been added or deleted.
|
DomNode |
HtmlDomTreeWalker.getCurrentNode() |
protected DomNode |
AbstractDomNodeList.getDomNode()
Returns the DOM node.
|
protected DomNode |
DomElement.getEventTargetElement()
Returns the event target element.
|
DomNode |
DomNode.getFirstChild() |
DomNode |
DomNode.getLastChild() |
DomNode |
DomNode.getNextSibling() |
DomNode |
DomNode.getParentNode() |
DomNode |
DomChangeEvent.getParentNode()
Returns the parent of the node that was changed.
|
DomNode |
DomNode.getPreviousSibling() |
DomNode |
HtmlDomTreeWalker.getRoot() |
DomNode |
DomNodeIterator.getRoot() |
DomNode |
HtmlDomTreeWalker.lastChild() |
DomNode |
DomNode.ChildIterator.next() |
DomNode |
HtmlDomTreeWalker.nextNode() |
DomNode |
DomNodeIterator.nextNode() |
DomNode |
HtmlDomTreeWalker.nextSibling() |
DomNode |
HtmlDomTreeWalker.parentNode() |
DomNode |
HtmlDomTreeWalker.previousNode() |
DomNode |
DomNodeIterator.previousNode() |
DomNode |
HtmlDomTreeWalker.previousSibling() |
Modifier and Type | Method and Description |
---|---|
DomNodeList<DomNode> |
DomNode.getChildNodes() |
Iterable<DomNode> |
DomNode.getChildren() |
Iterable<DomNode> |
DomNode.getDescendants()
Returns an
Iterable that will recursively iterate over all of this node's descendants,
including DomText elements, DomComment elements, etc. |
DomNodeList<DomNode> |
DomNode.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
Modifier and Type | Method and Description |
---|---|
String |
XmlSerializer.asText(DomNode node) |
ScriptResult |
HtmlPage.executeJavaScriptFunction(Object function,
Object thisObject,
Object[] args,
DomNode htmlElementScope)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
protected void |
DomNode.fireNodeAdded(DomNode parentNode,
DomNode addedNode)
Support for reporting DOM changes.
|
protected void |
DomNode.fireNodeDeleted(DomNode parentNode,
DomNode deletedNode)
Support for reporting DOM changes.
|
void |
HtmlOption.insertBefore(DomNode newNode)
Inserts the specified node as a new child node before this node into the child relationship this node is a
part of.
|
void |
DomNode.insertBefore(DomNode newNode)
Inserts the specified node as a new child node before this node into the child relationship this node is a
part of.
|
protected boolean |
DomNode.DescendantElementsIterator.isAccepted(DomNode node)
Indicates if the node is accepted.
|
boolean |
DomNode.isAncestorOf(DomNode node)
Returns
true if this node is an ancestor of the specified node. |
boolean |
DomNode.isAncestorOfAny(DomNode... nodes)
Returns
true if this node is an ancestor of the specified nodes. |
protected void |
XmlSerializer.printText(DomNode node)
Prints the text content from this node and all children.
|
void |
DomNode.quietlyRemoveAndMoveChildrenTo(DomNode destination)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
DomNode.replace(DomNode newNode)
Replaces this node with another node.
|
protected void |
DomNode.setParentNode(DomNode parent)
Sets the parent node.
|
Constructor and Description |
---|
AbstractDomNodeList(DomNode node)
Creates a new node list.
|
ChildElementsIterator(DomNode domNode)
Constructor.
|
ChildIterator(DomNode nextNode) |
DomChangeEvent(DomNode parentNode,
DomNode changedNode)
Constructs a new DomChangeEvent from the given parent node and a changed node.
|
DomNodeIterator(DomNode root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean expandEntityReferences)
Creates a new instance.
|
HtmlDomTreeWalker(DomNode root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean expandEntityReferences)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
SimpleRange.getCommonAncestorContainer() |
DomNode |
SimpleRange.getEndContainer() |
DomNode |
SimpleRange.getStartContainer() |
Modifier and Type | Method and Description |
---|---|
List<DomNode> |
SimpleRange.containedNodes() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleRange.insertNode(DomNode newNode)
Inserts a node into the Document or DocumentFragment at the start of
the Range.
|
void |
SimpleRange.selectNode(DomNode node)
Select a node and its contents.
|
void |
SimpleRange.selectNodeContents(DomNode node)
Select the contents within a node.
|
void |
SimpleRange.setEnd(DomNode refNode,
int offset)
Sets the attributes describing the end.
|
void |
SimpleRange.setStart(DomNode refNode,
int offset)
Sets the attributes describing the start.
|
void |
SimpleRange.surroundContents(DomNode newParent)
Reparents the contents of the Range to the given node and inserts the
node at the position of the start of the Range.
|
Constructor and Description |
---|
SimpleRange(DomNode node)
Constructs a range for the specified element.
|
SimpleRange(DomNode node,
int offset)
Constructs a range for the provided element and start and end offset.
|
SimpleRange(DomNode startNode,
int startOffset,
DomNode endNode,
int endOffset)
Constructs a range for the provided elements and offsets.
|
Modifier and Type | Method and Description |
---|---|
void |
HTMLParser.parseFragment(DomNode parent,
DomNode context,
String source,
boolean createdByJavascript)
Parses the HTML content from the given string into an object tree representation.
|
void |
HTMLParser.parseFragment(DomNode parent,
String source)
Parses the HTML content from the given string into an object tree representation.
|
Modifier and Type | Method and Description |
---|---|
void |
HtmlUnitNekoHtmlParser.parseFragment(DomNode parent,
DomNode context,
String source,
boolean createdByJavascript)
Parses the HTML content from the given string into an object tree representation.
|
void |
HtmlUnitNekoHtmlParser.parseFragment(DomNode parent,
String source)
Parses the HTML content from the given string into an object tree representation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HtmlSerializerInnerOuterText.appendChildren(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder,
DomNode node,
HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode,
boolean insideHead)
Iterate over all Children and call appendNode() for every.
|
protected void |
HtmlSerializerNormalizedText.appendChildren(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder,
DomNode node)
Iterate over all Children and call appendNode() for every.
|
protected void |
HtmlSerializerVisibleText.appendChildren(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder,
DomNode node,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
Iterate over all Children and call appendNode() for every.
|
protected void |
HtmlSerializerNormalizedText.appendDomNode(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder,
DomNode domNode)
Process
HtmlHiddenInput . |
protected void |
HtmlSerializerVisibleText.appendDomNode(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder,
DomNode domNode,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
Process
DomNode . |
protected void |
HtmlSerializerInnerOuterText.appendNode(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder,
DomNode node,
HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode,
boolean insideHead)
The core distribution method call the different appendXXX
methods depending on the type of the given node.
|
protected void |
HtmlSerializerNormalizedText.appendNode(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder,
DomNode node)
The core distribution method call the different appendXXX
methods depending on the type of the given node.
|
protected void |
HtmlSerializerVisibleText.appendNode(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder,
DomNode node,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
The core distribution method call the different appendXXX
methods depending on the type of the given node.
|
String |
HtmlSerializerVisibleText.asText(DomNode node)
Converts an HTML node to text.
|
String |
HtmlSerializerNormalizedText.asText(DomNode node)
Converts an HTML node to text.
|
String |
HtmlSerializerInnerOuterText.asText(DomNode node)
Converts an HTML node to text.
|
protected boolean |
HtmlSerializerVisibleText.isDisplayed(DomNode domNode)
Check domNode visibility.
|
protected HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode |
HtmlSerializerVisibleText.updateWhiteSpaceStyle(DomNode domNode,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode defaultMode) |
protected HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode |
HtmlSerializerVisibleText.whiteSpaceStyle(DomNode domNode,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode defaultMode) |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
XPathHelper.getByXPath(DomNode contextNode,
String xpathExpr,
org.htmlunit.xpath.xml.utils.PrefixResolver prefixResolver)
Evaluates an XPath expression from the specified node, returning the resultant nodes.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
HtmlUnitScriptable.getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
DomNode |
HtmlUnitScriptable.getDomNodeOrNull()
Returns the DOM node that corresponds to this JavaScript object
or null if a node hasn't been set.
|
Modifier and Type | Method and Description |
---|---|
Object |
JavaScriptEngine.callFunction(HtmlPage page,
org.htmlunit.corejs.javascript.Function javaScriptFunction,
org.htmlunit.corejs.javascript.Scriptable thisObject,
Object[] args,
DomNode node)
Calls a JavaScript function and return the result.
|
protected void |
HtmlUnitScriptable.initParentScope(DomNode domNode,
HtmlUnitScriptable scriptable)
Initialize the parent scope of a newly created scriptable.
|
HtmlUnitScriptable |
HtmlUnitScriptable.makeScriptableFor(DomNode domNode)
Builds a new the JavaScript object that corresponds to the specified object.
|
void |
HtmlUnitScriptable.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
HtmlUnitScriptable.setDomNode(DomNode domNode,
boolean assignScriptObject)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
protected String |
Element.getInnerHTML(DomNode domNode)
Helper for getInnerHtml (to be reuses bei HTMLTemplate.
|
protected void |
Element.printChildren(StringBuilder builder,
DomNode node,
boolean html)
Helper for getting code back from nodes.
|
protected void |
Element.printNode(StringBuilder builder,
DomNode node,
boolean html) |
void |
Element.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
Modifier and Type | Method and Description |
---|---|
List<DomNode> |
AbstractList.getElements()
Gets the HTML elements from cache or retrieve them at first call.
|
protected Supplier<List<DomNode>> |
AbstractList.getElementSupplier() |
protected Predicate<DomNode> |
AbstractList.getIsMatchingPredicate() |
Modifier and Type | Method and Description |
---|---|
protected AbstractList |
NodeList.create(DomNode parentScope,
List<DomNode> initialElements)
Constructs a new instance with an initial cache value.
|
protected AbstractList |
AbstractList.create(DomNode parentScope,
List<DomNode> initialElements)
Constructs a new instance with an initial cache value.
|
protected Node |
Node.getJavaScriptNode(DomNode domNode)
Gets the JavaScript node for a given DomNode.
|
void |
AbstractList.setDomNode(DomNode domNode,
boolean assignScriptObject) |
Modifier and Type | Method and Description |
---|---|
protected AbstractList |
NodeList.create(DomNode parentScope,
List<DomNode> initialElements)
Constructs a new instance with an initial cache value.
|
protected AbstractList |
AbstractList.create(DomNode parentScope,
List<DomNode> initialElements)
Constructs a new instance with an initial cache value.
|
protected Object |
AbstractList.getWithPreemptionByName(String name,
List<DomNode> elements)
Helper for
AbstractList.getWithPreemption(String) when finding by id doesn't get results. |
void |
AbstractList.setElementsSupplier(Supplier<List<DomNode>> elementsSupplier)
Returns the elements whose associated host objects are available through this collection.
|
void |
AbstractList.setIsMatchingPredicate(Predicate<DomNode> isMatchingPredicate)
Indicates if the node should belong to the collection.
|
static NodeList |
NodeList.staticNodeList(HtmlUnitScriptable parentScope,
List<DomNode> elements)
Gets a static NodeList.
|
Constructor and Description |
---|
AbstractList(DomNode domNode,
boolean attributeChangeSensitive,
List<DomNode> initialElements)
Creates an instance.
|
NodeList(DomNode domNode,
boolean attributeChangeSensitive)
Creates an instance.
|
NodeList(DomNode domNode,
List<DomNode> initialElements)
Constructs an instance with an initial cache value.
|
RadioNodeList(DomNode domNode)
Creates an instance.
|
RadioNodeList(DomNode domNode,
boolean attributeChangeSensitive)
Creates an instance.
|
RadioNodeList(DomNode domNode,
List<DomNode> initialElements)
Constructs an instance with an initial cache value.
|
Constructor and Description |
---|
AbstractList(DomNode domNode,
boolean attributeChangeSensitive,
List<DomNode> initialElements)
Creates an instance.
|
NodeList(DomNode domNode,
List<DomNode> initialElements)
Constructs an instance with an initial cache value.
|
RadioNodeList(DomNode domNode,
List<DomNode> initialElements)
Constructs an instance with an initial cache value.
|
Modifier and Type | Method and Description |
---|---|
static Event |
Event.createPropertyChangeEvent(DomNode domNode,
String propertyName)
Creates a new Event with
Event.TYPE_PROPERTY_CHANGE type. |
Constructor and Description |
---|
BeforeUnloadEvent(DomNode domNode,
String type)
Creates a new event instance.
|
Event(DomNode domNode,
String type)
Creates a new event instance.
|
EventHandler(DomNode node,
String eventName,
String jsSnippet)
Builds a function that will execute the JavaScript code provided.
|
KeyboardEvent(DomNode domNode,
String type,
char character,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new keyboard event instance.
|
KeyboardEvent(DomNode domNode,
String type,
int keyCode,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new keyboard event instance.
|
MouseEvent(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button,
int detail)
Creates a new event instance.
|
PointerEvent(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button,
int detail)
Creates a new event instance.
|
SubmitEvent(DomNode domNode,
HTMLElement submitElement)
Ctor.
|
UIEvent(DomNode domNode,
String type)
Creates a new UI event instance.
|
Modifier and Type | Class and Description |
---|---|
static class |
HTMLElement.ProxyDomNode
ProxyDomNode.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
HTMLElement.ProxyDomNode.appendChild(Node node) |
DomNode |
HTMLElement.ProxyDomNode.getDomNode()
Gets wrapped DomNode.
|
DomNode |
HTMLDocument.getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
Modifier and Type | Method and Description |
---|---|
protected HTMLCollection |
HTMLCollection.create(DomNode parentScope,
List<DomNode> initialElements)
Constructs a new instance with an initial cache value.
|
static HTMLCollection |
HTMLCollection.emptyCollection(DomNode domNode)
Gets an empty collection.
|
void |
ValidityState.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
HTMLSpanElement.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
HTMLImageElement.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
HTMLElement.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
Modifier and Type | Method and Description |
---|---|
protected HTMLCollection |
HTMLCollection.create(DomNode parentScope,
List<DomNode> initialElements)
Constructs a new instance with an initial cache value.
|
protected Object |
HTMLCollection.getWithPreemptionByName(String name,
List<DomNode> elements)
Helper for
AbstractList.getWithPreemption(String) when finding by id doesn't get results. |
Constructor and Description |
---|
HTMLAllCollection(DomNode parentScope)
Creates an instance.
|
HTMLCollection(DomNode domNode,
boolean attributeChangeSensitive)
Creates an instance.
|
HTMLFormControlsCollection(DomNode domNode,
boolean attributeChangeSensitive)
Creates an instance.
|
ProxyDomNode(SgmlPage page,
DomNode target,
boolean append)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLDocument.initParentScope(DomNode domNode,
HtmlUnitScriptable scriptable)
Initialize the parent scope of a newly created scriptable.
|
HtmlUnitScriptable |
XMLDocument.makeScriptableFor(DomNode domNode)
Builds a new the JavaScript object that corresponds to the specified object.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
DomTreeWalker.firstChild() |
DomNode |
DomTreeWalker.getCurrentNode() |
DomNode |
DomTreeWalker.getRoot() |
DomNode |
DomTreeWalker.lastChild() |
DomNode |
DomTreeWalker.nextNode() |
DomNode |
DomTreeWalker.nextSibling() |
DomNode |
DomTreeWalker.parentNode() |
DomNode |
DomTreeWalker.previousNode() |
DomNode |
DomTreeWalker.previousSibling() |
Constructor and Description |
---|
DomTreeWalker(DomNode root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean expandEntityReferences)
Creates an instance.
|
Modifier and Type | Class and Description |
---|---|
class |
SvgAltGlyph
Wrapper for the SVG element
altGlyph . |
class |
SvgAltGlyphDef
Wrapper for the SVG element
altGlyphDef . |
class |
SvgAltGlyphItem
Wrapper for the SVG element
altGlyphItem . |
class |
SvgAnchor
Wrapper for the SVG element
a . |
class |
SvgAnimate
Wrapper for the SVG element
animate . |
class |
SvgAnimateColor
Wrapper for the SVG element
animateColor . |
class |
SvgAnimateMotion
Wrapper for the SVG element
animateMotion . |
class |
SvgAnimateTransform
Wrapper for the SVG element
animateTransform . |
class |
SvgCircle
Wrapper for the SVG element
circle . |
class |
SvgClipPath
Wrapper for the SVG element
clipPath . |
class |
SvgColorProfile
Wrapper for the SVG element "color-profile".
|
class |
SvgCursor
Wrapper for the SVG element
cursor . |
class |
SvgDefs
Wrapper for the SVG element
defs . |
class |
SvgDesc
Wrapper for the SVG element
desc . |
class |
SvgElement
Parent elements of all SVG elements, and wrapper for any unknown one.
|
class |
SvgEllipse
Wrapper for the SVG element
ellipse . |
class |
SvgFeBlend
Wrapper for the SVG element
feBlend . |
class |
SvgFeColorMatrix
Wrapper for the SVG element
feColorMatrix . |
class |
SvgFeComponentTransfer
Wrapper for the SVG element
feComponentTransfer . |
class |
SvgFeComposite
Wrapper for the SVG element
feComposite . |
class |
SvgFeConvolveMatrix
Wrapper for the SVG element
feConvolveMatrix . |
class |
SvgFeDiffuseLighting
Wrapper for the SVG element
feDiffuseLighting . |
class |
SvgFeDisplacementMap
Wrapper for the SVG element
feDisplacementMap . |
class |
SvgFeDistantLight
Wrapper for the SVG element
feDistantLight . |
class |
SvgFeFlood
Wrapper for the SVG element
feFlood . |
class |
SvgFeFuncA
Wrapper for the SVG element
feFuncA . |
class |
SvgFeFuncB
Wrapper for the SVG element
feFuncB . |
class |
SvgFeFuncG
Wrapper for the SVG element
feFuncG . |
class |
SvgFeFuncR
Wrapper for the SVG element
feFuncR . |
class |
SvgFeGaussianBlur
Wrapper for the SVG element
feGaussianBlur . |
class |
SvgFeImage
Wrapper for the SVG element
feImage . |
class |
SvgFeMerge
Wrapper for the SVG element
feMerge . |
class |
SvgFeMergeNode
Wrapper for the SVG element
feMergeNode . |
class |
SvgFeMorphology
Wrapper for the SVG element
feMorphology . |
class |
SvgFeOffset
Wrapper for the SVG element
feOffset . |
class |
SvgFePointLight
Wrapper for the SVG element
fePointLight . |
class |
SvgFeSpecularLighting
Wrapper for the SVG element
feSpecularLighting . |
class |
SvgFeSpotLight
Wrapper for the SVG element
feSpotLight . |
class |
SvgFeTile
Wrapper for the SVG element
feTile . |
class |
SvgFeTurbulence
Wrapper for the SVG element
feTurbulence . |
class |
SvgFilter
Wrapper for the SVG element
filter . |
class |
SvgFont
Wrapper for the SVG element
font . |
class |
SvgFontFace
Wrapper for the SVG element "font-face".
|
class |
SvgFontFaceFormat
Wrapper for the SVG element "font-face-format".
|
class |
SvgFontFaceName
Wrapper for the SVG element "font-face-name".
|
class |
SvgFontFaceSrc
Wrapper for the SVG element "font-face-src".
|
class |
SvgFontFaceURI
Wrapper for the SVG element "font-face-uri".
|
class |
SvgForeignObject
Wrapper for the SVG element
foreignObject . |
class |
SvgGlyph
Wrapper for the SVG element
glyph . |
class |
SvgGlyphRef
Wrapper for the SVG element
glyphRef . |
class |
SvgGroup
Wrapper for the SVG element
g . |
class |
SvgHKern
Wrapper for the SVG element
hkern . |
class |
SvgImage
Wrapper for the SVG element
image . |
class |
SvgLine
Wrapper for the SVG element
line . |
class |
SvgLinearGradient
Wrapper for the SVG element
linearGradient . |
class |
SvgMarker
Wrapper for the SVG element
marker . |
class |
SvgMask
Wrapper for the SVG element
mask . |
class |
SvgMetadata
Wrapper for the SVG element
metadata . |
class |
SvgMissingGlyph
Wrapper for the SVG element "missing-glyph".
|
class |
SvgMPath
Wrapper for the SVG element
mpath . |
class |
SvgPath
Wrapper for the SVG element
path . |
class |
SvgPattern
Wrapper for the SVG element
pattern . |
class |
SvgPolygon
Wrapper for the SVG element
polygon . |
class |
SvgPolyline
Wrapper for the SVG element
polyline . |
class |
SvgRadialGradient
Wrapper for the SVG element
radialGradient . |
class |
SvgRect
Wrapper for the SVG element
rect . |
class |
SvgScript
Wrapper for the SVG element
script . |
class |
SvgSet
Wrapper for the SVG element
set . |
class |
SvgStop
Wrapper for the SVG element
stop . |
class |
SvgStyle
Wrapper for the SVG element
style . |
class |
SvgSwitch
Wrapper for the SVG element
switch . |
class |
SvgSymbol
Wrapper for the SVG element
symbol . |
class |
SvgText
Wrapper for the SVG element
text . |
class |
SvgTextPath
Wrapper for the SVG element
textPath . |
class |
SvgTitle
Wrapper for the SVG element
title . |
class |
SvgTRef
Wrapper for the SVG element
tref . |
class |
SvgTSpan
Wrapper for the SVG element
tspan . |
class |
SvgUse
Wrapper for the SVG element
use . |
class |
SvgView
Wrapper for the SVG element
view . |
class |
SvgVKern
Wrapper for the SVG element
vkern . |
Modifier and Type | Method and Description |
---|---|
static void |
XmlUtils.appendChild(SgmlPage page,
DomNode parent,
Node child,
boolean handleXHTMLAsHTML)
|
static void |
XmlUtils.appendChild(SgmlPage page,
DomNode parent,
Node child,
boolean handleXHTMLAsHTML,
Map<Integer,List<String>> attributesOrderMap)
|
Modifier and Type | Class and Description |
---|---|
class |
XmlPage
A page that will be returned for response with content type "text/xml".
|
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.