Uses of Class
org.htmlunit.html.HtmlElement
Packages that use HtmlElement
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Classes supporting Cascading Style Sheets.
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.Contains the neko html parser.
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Some special ScriptPreProcessor's to make this working with common js libs.
-
Uses of HtmlElement in org.htmlunit
Methods in org.htmlunit with parameters of type HtmlElementModifier and TypeMethodDescriptionScriptPreProcessor.preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement) Pre process the specified source code in the context of the given page. -
Uses of HtmlElement in org.htmlunit.css
Fields in org.htmlunit.css declared as HtmlElementModifier and TypeFieldDescriptionprivate final HtmlElementCssStyleSheet.owner_The HTML element which owns this stylesheet.Methods in org.htmlunit.css with parameters of type HtmlElementModifier and TypeMethodDescriptionstatic CssStyleSheetCssStyleSheet.loadStylesheet(HtmlElement element, HtmlLink link, String url) Loads the stylesheet at the specified link or href.Constructors in org.htmlunit.css with parameters of type HtmlElementModifierConstructorDescriptionCssStyleSheet(HtmlElement element, String styleSheet, String uri) Creates a new stylesheet representing the CSS stylesheet for the specified input source.CssStyleSheet(HtmlElement element, org.htmlunit.cssparser.dom.CSSStyleSheetImpl wrapped, String uri) Creates a new stylesheet representing the specified CSS stylesheet.CssStyleSheet(HtmlElement element, org.htmlunit.cssparser.parser.InputSource source, String uri) Creates a new stylesheet representing the CSS stylesheet for the specified input source. -
Uses of HtmlElement in org.htmlunit.html
Subclasses of HtmlElement in org.htmlunit.htmlModifier and TypeClassDescriptionclassBase class for frame and iframe.classWrapper for the HTML element "abbr".classWrapper for the HTML element "acronym".classWrapper for the HTML element "address".classWrapper for the HTML element "a".classWrapper for the HTML element "area".classWrapper for the HTML element "article".classWrapper for the HTML element "aside".classWrapper for the HTML element "Audio".classWrapper for the HTML element "bgsound".classWrapper for the HTML element "base".classWrapper for the HTML element "basefont".classWrapper for the HTML element "bdi".classWrapper for the HTML element "bdo".classWrapper for the HTML element "big".classWrapper for the HTML element "blink".classWrapper for the HTML element "blockquote".classWrapper for the HTML element "body".classWrapper for the HTML element "b".classWrapper for the HTML element "br".classWrapper for the HTML element "button".classWrapper for the HTML element "input" where type is "button".classWrapper for the HTML element "canvas".classWrapper for the HTML element "caption".classWrapper for the HTML element "center".classWrapper for the HTML element "input".classWrapper for the HTML element "cite".classWrapper for the HTML element "code".classWrapper for the HTML element "input" where type is "color".classWrapper for the HTML element "command".classWrapper for the HTML element "data".classWrapper for the HTML element "datalist".classWrapper for the HTML element "input" where type is "date".classWrapper for the HTML element "input" where type is "datetime-local".classWrapper for the HTML element "dfn".classWrapper for the HTML element "dd".classWrapper for the HTML element "dl".classWrapper for the HTML element "dt".classWrapper for the HTML element "del".classWrapper for the HTML element "details".classWrapper for the HTML element "dialog".classWrapper for the HTML element "dir".classWrapper for the HTML element "div".classWrapper for the HTML element "input" where type is "email".classWrapper for the HTML element "embed".classWrapper for the HTML element "em".classWrapper for the HTML element "xmp".classWrapper for the HTML element "fieldset".classWrapper for the HTML element "figure".classWrapper for the HTML element "figcaption".classWrapper for the HTML element "input".classWrapper for the HTML element "font".classWrapper for the HTML element "footer".classWrapper for the HTML element "form".classWrapper for the HTML element "frame".classWrapper for the HTML element "frameset".classWrapper for the HTML element "head".classWrapper for the HTML element "header".classWrapper for the HTML element "h1".classWrapper for the HTML element "h2".classWrapper for the HTML element "h3".classWrapper for the HTML element "h4".classWrapper for the HTML element "h5".classWrapper for the HTML element "h6".classWrapper for the HTML element "input" of type "hidden".classWrapper for the HTML element "hr".final classA representation of an HTML element "html".classWrapper for the HTML element "img".classWrapper for the HTML element "input".classWrapper for the HTML element "iframe".classWrapper for the HTML element "q".classWrapper for the HTML element "input".classWrapper for the HTML element "ins".classWrapper for the HTML element "isindex".classWrapper for the HTML element "i".classWrapper for the HTML element "kbd".classWrapper for the HTML element "label".classWrapper for the HTML element "layer".classWrapper for the HTML element "legend".classWrapper for the HTML element "link".classWrapper for the HTML element "listing".classWrapper for the HTML element "li".classWrapper for the HTML element "main".classWrapper for the HTML element "map".classWrapper for the HTML element "mark".classWrapper for the HTML element "marquee".classHTML Media element, e.g.classWrapper for the HTML element "menu".classWrapper for the HTML element "menuitem".classWrapper for the HTML element "meta".classHTML 5 "meter" element.classWrapper for the HTML element "input" where type is "month".classWrapper for the HTML element "multicol".classWrapper for the HTML element "nav".classWrapper for the HTML element "nextId".classWrapper for the HTML element "nobr".classWrapper for the HTML element "noembed".classWrapper for the HTML element "noframes".classWrapper for the HTML element "nolayer".classWrapper for the HTML element "noscript".classWrapper for the HTML element "input" with type is "number".classWrapper for the HTML element "object".classWrapper for the HTML element "option".classWrapper for the HTML element "optgroup".classWrapper for the HTML element "ol".classWrapper for the HTML element "output".classWrapper for the HTML element "p".classWrapper for the HTML element "param".classWrapper for the HTML element "input".classWrapper for the HTML element "picture".classWrapper for the HTML element "plaintext".classWrapper for the HTML element "pre".classWrapper for the HTML element "progress".classWrapper for the HTML element "input".classWrapper for the HTML element "input" where type is "range".classWrapper for the HTML element "rb".classWrapper for the HTML element "input".classWrapper for the HTML element "rp".classWrapper for the HTML element "rt".classWrapper for the HTML element "rtc".classWrapper for the HTML element "ruby".classWrapper for the HTML element "s", a strike-through text style.classWrapper for the HTML element "samp".classWrapper for the HTML element "script".
When a script tag references an external script (with attribute src) it gets executed when the node is added to the DOM tree.classWrapper for the HTML element "input" where type is "search".classWrapper for the HTML element "section".classWrapper for the HTML element "select".classAbstract parent class to shareSelectableTextInputimplementation and typing support.classWrapper for the HTML element "slot".classWrapper for the HTML element "small".classWrapper for the HTML element "source".classWrapper for the HTML element "span".classWrapper for the HTML element "strike".classWrapper for the HTML element "strong".classWrapper for the HTML element "style".classWrapper for the HTML element "input".classWrapper for the HTML element "sub".classWrapper for the HTML element "summary".classWrapper for the HTML element "sup".classWrapper for the SVG elementsvg.classWrapper for the HTML element "table".classWrapper for the HTML element "tbody".classAn abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell.classWrapper for the HTML element "col".classWrapper for the HTML element "colgroup".classWrapper for the HTML element "td".classWrapper for the HTML element "tfoot".classWrapper for the HTML element "thead".classWrapper for the HTML "th" tag.classWrapper for the HTML element "tr".classWrapper for the HTML element "tt".classWrapper for the HTML element "input" where type is "tel".classWrapper for the HTML element "template".classWrapper for the HTML element "textarea".classWrapper for the HTML element "input" with type="text".classWrapper for the HTML element "time".classWrapper for the HTML element "input" where type is "time".classWrapper for the HTML element "title".classWrapper for the HTML element "track".classWrapper for the HTML element "u".classAn element that is returned for an HTML tag that is not supported by this framework.classWrapper for the HTML element "ul".classWrapper for the HTML element "input" where type is "url".classWrapper for the HTML element "var".classWrapper for the HTML element "video".classWrapper for the HTML element "input" where type is "week".classWrapper for the HTML element "wbr".classSuperclass for the wrappers for the HTML elements "thead", "tbody" and "tfoot".Methods in org.htmlunit.html with type parameters of type HtmlElementModifier and TypeMethodDescriptionfinal <E extends HtmlElement>
List<E> HtmlElement.getElementsByAttribute(String elementName, String attributeName, String attributeValue) Returns all elements which are descendants of this element and match the specified search criteria.(package private) <E extends HtmlElement>
DomNodeList<E> DomElement.getElementsByTagNameImpl(String tagName) This should beDomElement.getElementsByTagName(String), but is separate because of the type erasure in Java.private <E extends HtmlElement>
List<E> HtmlForm.getFormElementsByAttribute(String elementName, String attributeName, String attributeValue) Same asHtmlElement.getElementsByAttribute(String, String, String)but ignoring elements that are contained in a nested form.<E extends HtmlElement>
EHtmlPage.getHtmlElementById(String elementId) Returns the HTML element with the specified ID.final <E extends HtmlElement>
EHtmlElement.getOneHtmlElementByAttribute(String elementName, String attributeName, String attributeValue) Searches for an element based on the specified criteria, returning the first element which matches said criteria.Methods in org.htmlunit.html that return HtmlElementModifier and TypeMethodDescriptionfinal HtmlElementHtmlElement.appendChildIfNoneExists(String tagName) Appends a child element to this HTML element with the specified tag name if this HTML element does not already have a child with that tag name.DefaultElementFactory.createElement(SgmlPage page, String tagName, Attributes attributes) UnknownElementFactory.createElement(SgmlPage page, String tagName, Attributes attributes) Creates an element according to this factory's specification.DefaultElementFactory.createElementNS(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes) DefaultElementFactory.createElementNS(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes, boolean checkBrowserCompatibility) UnknownElementFactory.createElementNS(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes) Creates an element according to this factory's specification.UnknownElementFactory.createElementNS(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes, boolean checkBrowserCompatibility) Creates an element according to this factory's specification.private HtmlElementDefaultElementFactory.createInputElement(String qualifiedName, SgmlPage page, Map<String, DomAttr> attributeMap) HtmlPage.getActiveElement()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.HtmlPage.getBody()Returns thebodyelement (orframesetelement), ornullif it does not yet exist.HtmlPage.getDocumentElement()Returns the document element.ElementFromPointHandler.getElementFromPoint(HtmlPage htmlPage, int x, int y) Returns the element for the specified x coordinate and the specified y coordinate.HtmlPage.getElementFromPoint(int x, int y) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the element for the specified x coordinate and the specified y coordinate.HtmlElement.getEnclosingElement(String tagName) Returns the first element with the specified tag name that is an ancestor to this element, ornullif no such element is found.HtmlPage.getHead()Returns the head element.HtmlAttributeChangeEvent.getHtmlElement()Returns the HtmlElement that changed.HtmlPage.getHtmlElementByAccessKey(char accessKey) Returns the HTML element that is assigned to the specified access key.HtmlLabel.getLabeledElement()Gets the element labeled by this label.HtmlPage.tabToNextElement()Move the focus to the next element in the tab order.HtmlPage.tabToPreviousElement()Move the focus to the previous element in the tab order.Methods in org.htmlunit.html that return types with arguments of type HtmlElementModifier and TypeMethodDescriptionprivate static Comparator<HtmlElement> HtmlPage.createTabOrderComparator()HtmlForm.getElements()DomElement.getElementsByTagName(String tagName) DomElement.getElementsByTagNameNS(String namespace, String localName) Not yet implemented.final Iterable<HtmlElement> DomNode.getHtmlElementDescendants()Returns anIterablethat will recursively iterate over all of this node'sHtmlElementdescendants.HtmlPage.getHtmlElementsByAccessKey(char accessKey) Returns all the HTML elements that are assigned to the specified access key.HtmlPage.getTabbableElements()Returns a list of all elements that are tabbable in the order that will be used for tabbing.Methods in org.htmlunit.html with parameters of type HtmlElementModifier and TypeMethodDescriptionXmlSerializer.createAttributesCopyWithClonedAttribute(HtmlElement elt, String attrName) protected voidDomText.doType(char c, HtmlElement htmlElement, boolean lastType) Performs the effective type action, called after the keyPress event and before the keyUp event.protected voidDomText.doType(int keyCode, HtmlElement htmlElement, boolean lastType) Performs the effective type action, called after the keyPress event and before the keyUp event.(package private) voidDoTypeProcessor.doType(String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType) (package private) voidDoTypeProcessor.doType(String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType) (package private) static PageHtmlInput.executeOnChangeHandlerIfAppropriate(HtmlElement htmlElement) Executes the onchange script code for this element if this is appropriate.private static booleanHtmlForm.isSubmittable(HtmlElement element, SubmittableElement submitElement) Returnstrueif the specified element gets submitted when this form is submitted, assuming that the form is submitted using the specified submit element.private static booleanHtmlForm.isValidForSubmission(HtmlElement element, SubmittableElement submitElement) protected static voidHtmlElement.notifyAttributeChangeListeners(HtmlAttributeChangeEvent event, HtmlElement element, String oldAttributeValue, boolean notifyMutationObservers) Recursively notifies allHtmlAttributeChangeListeners.(package private) voidHtmlPage.removeMappedElement(HtmlElement element) Removes an element from the ID and name maps, if necessary.Constructors in org.htmlunit.html with parameters of type HtmlElementModifierConstructorDescriptionHtmlAttributeChangeEvent(HtmlElement element, String name, String value) Constructs a new AttributeEvent from the given element, for the given attribute name and attribute value. -
Uses of HtmlElement in org.htmlunit.html.parser.neko
Fields in org.htmlunit.html.parser.neko declared as HtmlElementMethods in org.htmlunit.html.parser.neko that return HtmlElement -
Uses of HtmlElement in org.htmlunit.javascript
Methods in org.htmlunit.javascript with parameters of type HtmlElementModifier and TypeMethodDescriptionprotected StringHtmlUnitContextFactory.preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement) Pre process the specified source code in the context of the given page using the processor specified in theWebClient. -
Uses of HtmlElement in org.htmlunit.javascript.host.html
Subclasses of HtmlElement in org.htmlunit.javascript.host.htmlMethods in org.htmlunit.javascript.host.html that return HtmlElementModifier and TypeMethodDescriptionprivate HtmlElementHTMLFormElement.findFirstElement(String name) HTMLElement.getDomNodeOrDie()Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.HTMLElement.getDomNodeOrNull()Returns the DOM node that corresponds to this JavaScript object or null if a node hasn't been set.(package private) HtmlElementHTMLDocument.getLastHtmlElement(HtmlElement node) Gets the node that is the last one when exploring following nodes, depth-first.Methods in org.htmlunit.javascript.host.html that return types with arguments of type HtmlElementModifier and TypeMethodDescription(package private) List<HtmlElement> HTMLFormElement.findElements(String name) Methods in org.htmlunit.javascript.host.html with parameters of type HtmlElementModifier and TypeMethodDescription(package private) static StringHTMLAnchorElement.getDefaultValue(HtmlElement element) (package private) HtmlElementHTMLDocument.getLastHtmlElement(HtmlElement node) Gets the node that is the last one when exploring following nodes, depth-first.private booleanHTMLFormElement.isAccessibleByIdOrName(HtmlElement element, String name) Indicates if the element can be reached by id or name in expressions like "myForm.myField". -
Uses of HtmlElement in org.htmlunit.javascript.preprocessor
Methods in org.htmlunit.javascript.preprocessor with parameters of type HtmlElementModifier and TypeMethodDescriptionHtmxOneNineTenScriptPreProcessor.preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement)