Class Document

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
Direct Known Subclasses:
HTMLDocument, XMLDocument

public class Document extends Node
A JavaScript object for Document.
See Also:
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
    • TAG_NAME_PATTERN

      private static final Pattern TAG_NAME_PATTERN
    • EXECUTE_CMDS_FF

      private static final Set<String> EXECUTE_CMDS_FF
      https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla#Executing_Commands
    • EXECUTE_CMDS_CHROME

      private static final Set<String> EXECUTE_CMDS_CHROME
    • LAST_MODIFIED_DATE_FORMAT

      private static final String LAST_MODIFIED_DATE_FORMAT
      The format to use for the lastModified attribute.
      See Also:
    • SUPPORTED_DOM2_EVENT_TYPE_MAP

      private static final Map<String,Class<? extends Event>> SUPPORTED_DOM2_EVENT_TYPE_MAP
      Contains all supported DOM level 2 events.
    • SUPPORTED_DOM3_EVENT_TYPE_MAP

      private static final Map<String,Class<? extends Event>> SUPPORTED_DOM3_EVENT_TYPE_MAP
      Contains all supported DOM level 3 events. DOM level 2 events are not included.
    • SUPPORTED_VENDOR_EVENT_TYPE_MAP

      private static final Map<String,Class<? extends Event>> SUPPORTED_VENDOR_EVENT_TYPE_MAP
      Contains all supported vendor specific events.
    • window_

      private Window window_
    • implementation_

      private DOMImplementation implementation_
    • designMode_

      private String designMode_
    • compatMode_

      private String compatMode_
    • documentMode_

      private int documentMode_
    • domain_

      private String domain_
    • lastModified_

      private String lastModified_
    • currentScript_

      private org.htmlunit.corejs.javascript.ScriptableObject currentScript_
    • fonts_

      private transient FontFaceSet fonts_
    • styleSheetList_

      private transient StyleSheetList styleSheetList_
    • blobUrl2Blobs_

      private final Map<String,Blob> blobUrl2Blobs_
  • Constructor Details

    • Document

      public Document()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class Node
    • setWindow

      public void setWindow(Window window)
      Sets the Window JavaScript object that encloses this document.
      Parameters:
      window - the Window JavaScript object that encloses this document
    • getLocation

      public Location getLocation()
      Returns the value of the location property.
      Returns:
      the value of the location property
    • setLocation

      public void setLocation(String location) throws IOException
      Sets the value of the location property. The location's default property is "href", so setting "document.location='http://www.sf.net'" is equivalent to setting "document.location.href='http://www.sf.net'".
      Parameters:
      location - the location to navigate to
      Throws:
      IOException - when location loading fails
      See Also:
    • getReferrer

      public String getReferrer()
      Returns the value of the referrer property.
      Returns:
      the value of the referrer property
    • getDocumentElement

      public Element getDocumentElement()
      Gets the JavaScript property documentElement for the document.
      Returns:
      the root node for the document
    • getRootElement

      public Element getRootElement()
      Gets the JavaScript property rootElement.
      Returns:
      the root node for the document
    • getDoctype

      public HtmlUnitScriptable getDoctype()
      Gets the JavaScript property doctype for the document.
      Returns:
      the DocumentType of the document
    • getDesignMode

      public String getDesignMode()
      Returns a value which indicates whether or not the document can be edited.
      Returns:
      a value which indicates whether or not the document can be edited
    • setDesignMode

      public void setDesignMode(String mode)
      Sets a value which indicates whether or not the document can be edited.
      Parameters:
      mode - a value which indicates whether or not the document can be edited
    • getPage

      public SgmlPage getPage()
      Returns the page that this document is modeling.
      Returns:
      the page that this document is modeling
    • getDefaultView

      public Object getDefaultView()
      Gets the window in which this document is contained.
      Returns:
      the window
    • createDocumentFragment

      public Object createDocumentFragment()
      Creates a new document fragment.
      Returns:
      a newly created document fragment
    • createAttribute

      public Attr createAttribute(String attributeName)
      Creates a new HTML attribute with the specified name.
      Parameters:
      attributeName - the name of the attribute to create
      Returns:
      an attribute with the specified name
    • importNode

      public HtmlUnitScriptable importNode(Node importedNode, boolean deep)
      Imports a node from another document to this document. The source node is not altered or removed from the original document; this method creates a new copy of the source node.
      Parameters:
      importedNode - the node to import
      deep - Whether to recursively import the subtree under the specified node; or not
      Returns:
      the imported node that belongs to this Document
    • adoptNode

      public Object adoptNode(Node externalNode)
      Adopts a node from an external document. The node and its subtree is removed from the document it's in (if any), and its ownerDocument is changed to the current document. The node can then be inserted into the current document.
      Parameters:
      externalNode - the node from another document to be adopted
      Returns:
      the adopted node that can be used in the current document
    • getImplementation

      public DOMImplementation getImplementation()
      Returns the implementation object of the current document.
      Returns:
      implementation-specific object
    • createNSResolver

      public XPathNSResolver createNSResolver(Node nodeResolver)
      Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.
      Parameters:
      nodeResolver - the node to be used as a context for namespace resolution
      Returns:
      an XPathNSResolver which resolves namespaces with respect to the definitions in scope for a specified node
    • createTextNode

      public Object createTextNode(String newData)
      Create a new DOM text node with the given data.
      Parameters:
      newData - the string value for the text node
      Returns:
      the new text node or NOT_FOUND if there is an error
    • createComment

      public Object createComment(String comment)
      Creates a new Comment.
      Parameters:
      comment - the comment text
      Returns:
      the new Comment
    • evaluate

      public XPathResult evaluate(String expression, Node contextNode, Object resolver, int type, Object result)
      Evaluates an XPath expression string and returns a result of the specified type if possible.
      Parameters:
      expression - the XPath expression string to be parsed and evaluated
      contextNode - the context node for the evaluation of this XPath expression
      resolver - the resolver permits translation of all prefixes, including the XML namespace prefix, within the XPath expression into appropriate namespace URIs.
      type - If a specific type is specified, then the result will be returned as the corresponding type
      result - the result object which may be reused and returned by this method
      Returns:
      the result of the evaluation of the XPath expression
    • createElement

      public Object createElement(String tagName)
      Creates a new element with the given tag name.
      Parameters:
      tagName - the tag name
      Returns:
      the new HTML element, or NOT_FOUND if the tag is not supported
    • createElementNS

      public Object createElementNS(String namespaceURI, String qualifiedName)
      Creates a new HTML element with the given tag name, and name.
      Parameters:
      namespaceURI - the URI that identifies an XML namespace
      qualifiedName - the qualified name of the element type to instantiate
      Returns:
      the new HTML element, or NOT_FOUND if the tag is not supported
    • getElementsByTagName

      public HTMLCollection getElementsByTagName(String tagName)
      Returns all the descendant elements with the specified tag name.
      Parameters:
      tagName - the name to search for
      Returns:
      all the descendant elements with the specified tag name
    • getElementsByTagNameNS

      public Object getElementsByTagNameNS(Object namespaceURI, String localName)
      Returns a list of elements with the given tag name belonging to the given namespace.
      Parameters:
      namespaceURI - the namespace URI of elements to look for
      localName - is either the local name of elements to look for or the special value "*", which matches all elements.
      Returns:
      a live NodeList of found elements in the order they appear in the tree
    • getActiveElement

      public Object getActiveElement()
      Returns the value of the activeElement property.
      Returns:
      the value of the activeElement property
      See Also:
    • getCharacterSet

      public String getCharacterSet()
      Returns the character encoding of the current document.
      Returns:
      the character encoding of the current document
    • getCharset

      public String getCharset()
      Retrieves the character set used to encode the document.
      Returns:
      the character set used to encode the document
    • getAnchors

      public Object getAnchors()
      Returns the value of the JavaScript property anchors.
      Returns:
      the value of this property
      See Also:
    • getApplets

      public Object getApplets()
      Returns the value of the JavaScript property applets.
      Returns:
      the value of this property
      See Also:
    • getBody

      public HTMLElement getBody()
      Returns this document's body element.
      Returns:
      this document's body element
    • setBody

      public void setBody(HTMLElement htmlElement)
      Sets the body element of the document.
      Parameters:
      htmlElement - the new html element
    • close

      public void close() throws IOException
      JavaScript function close.

      See http://www.whatwg.org/specs/web-apps/current-work/multipage/section-dynamic.html for a good description of the semantics of open(), write(), writeln() and close().

      Throws:
      IOException - if an IO problem occurs
    • getCompatMode

      public String getCompatMode()
      Returns the compatMode property.
      Returns:
      the compatMode property
    • getDocumentMode

      public int getDocumentMode()
      Returns the documentMode property.
      Returns:
      the documentMode property
    • isQuirksDocType

      private boolean isQuirksDocType()
    • forceDocumentMode

      public void forceDocumentMode(int documentMode)
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Called from the HTMLParser if a 'X-UA-Compatible' meta tag found.
      Parameters:
      documentMode - the mode forced by the meta tag
    • querySelector

      public Node querySelector(String selectors)
      Returns the first element within the document that matches the specified group of selectors.
      Parameters:
      selectors - the selectors
      Returns:
      null if no matches are found; otherwise, it returns the first matching element
    • querySelectorAll

      public NodeList querySelectorAll(String selectors)
      Retrieves all element nodes from descendants of the starting element node that match any selector within the supplied selector strings. The NodeList object returned by the querySelectorAll() method must be static, not live.
      Parameters:
      selectors - the selectors
      Returns:
      the static node list
    • queryCommandSupported

      public boolean queryCommandSupported(String cmd)
      Indicates if the command is supported.
      Parameters:
      cmd - the command identifier
      Returns:
      true if the command is supported
      See Also:
    • hasCommand

      private boolean hasCommand(String cmd, boolean includeBold)
    • queryCommandEnabled

      public boolean queryCommandEnabled(String cmd)
      Indicates if the command can be successfully executed using execCommand, given the current state of the document.
      Parameters:
      cmd - the command identifier
      Returns:
      true if the command can be successfully executed
    • execCommand

      public boolean execCommand(String cmd, boolean userInterface, Object value)
      Executes a command.
      Parameters:
      cmd - the command identifier
      userInterface - display a user interface if the command supports one
      value - the string, number, or other value to assign (possible values depend on the command)
      Returns:
      true if the command was successful, false otherwise
      See Also:
    • getURL_js

      public String getURL_js()
      Returns the value of the URL property.
      Returns:
      the value of the URL property
    • getDocumentURI

      public String getDocumentURI()
      Returns the value of the documentURI property.
      Returns:
      the value of the documentURI property
    • getCookie

      public String getCookie()
      Returns the cookie property.
      Returns:
      the cookie property
    • createEvent

      public Event createEvent(String eventType) throws DOMException
      Implementation of the DocumentEvent interface's DocumentEvent.createEvent(String) method. The method creates an uninitialized event of the specified type.
      Parameters:
      eventType - the event type to create
      Returns:
      an event object for the specified type
      Throws:
      DOMException - if the event type is not supported (will have a type of DOMException.NOT_SUPPORTED_ERR)
      See Also:
    • createNodeIterator

      public NodeIterator createNodeIterator(Node root, int whatToShow, org.htmlunit.corejs.javascript.Scriptable filter)
      Returns a new NodeIterator object.
      Parameters:
      root - The root node at which to begin the NodeIterator's traversal.
      whatToShow - an optional long representing a bitmask created by combining the constant properties of NodeFilter
      filter - an object implementing the NodeFilter interface
      Returns:
      a new NodeIterator object
    • createFilterWrapper

      private static org.w3c.dom.traversal.NodeFilter createFilterWrapper(org.htmlunit.corejs.javascript.Scriptable filter, boolean filterFunctionOnly)
    • createTreeWalker

      public Object createTreeWalker(Node root, double whatToShow, org.htmlunit.corejs.javascript.Scriptable filter, boolean expandEntityReferences) throws DOMException
      Creates and returns a new TreeWalker. The following JavaScript parameters are passed into this method:
      • JavaScript param 1: The root node of the TreeWalker. Must not be null.
      • JavaScript param 2: Flag specifying which types of nodes appear in the logical view of the TreeWalker. See NodeFilter for the set of possible Show_ values.
      • JavaScript param 3: The NodeFilter to be used with this TreeWalker, or null to indicate no filter.
      • JavaScript param 4: If false, the contents of EntityReference nodes are not present in the logical view.
      Parameters:
      root - the node which will serve as the root for the TreeWalker
      whatToShow - specifies which node types may appear in the logical view of the tree presented
      filter - the NodeFilter to be used with this TreeWalker, or null to indicate no filter
      expandEntityReferences - If false, the contents of EntityReference nodes are not presented in the logical view
      Returns:
      a new TreeWalker
      Throws:
      DOMException - on attempt to create a TreeWalker with a root that is null
      See Also:
    • staticGetPrototype

      private static org.htmlunit.corejs.javascript.Scriptable staticGetPrototype(Window window, Class<? extends HtmlUnitScriptable> javaScriptClass)
    • createRange

      public Range createRange()
      Creates and returns a new range.
      Returns:
      a new range
      See Also:
    • getDomain

      public String getDomain()
      Returns the domain name of the server that served the document, or null if the server cannot be identified by a domain name.
      Returns:
      the domain name of the server that served the document
      See Also:
    • setDomain

      public void setDomain(String newDomain)
      Sets the domain of this document.

      Domains can only be set to suffixes of the existing domain with the exception of setting the domain to itself.

      The domain will be set according to the following rules:

      1. If the newDomain.equalsIgnoreCase(currentDomain) the method returns with no error.
      2. If the browser version is netscape, the newDomain is downshifted.
      3. The change will take place if and only if the suffixes of the current domain and the new domain match AND there are at least two domain qualifiers e.g. the following transformations are legal d1.d2.d3.gargoylesoftware.com may be transformed to itself or: d2.d3.gargoylesoftware.com d3.gargoylesoftware.com gargoylesoftware.com

        transformation to: com will fail

      TODO This code could be modified to understand country domain suffixes. The domain www.bbc.co.uk should be trimmable only down to bbc.co.uk trimming to co.uk should not be possible.

      Parameters:
      newDomain - the new domain to set
    • setOnclick

      public void setOnclick(Object handler)
      Sets the onclick event handler for this element.
      Parameters:
      handler - the onclick event handler for this element
    • getOnclick

      public Object getOnclick()
      Returns the onclick event handler for this element.
      Returns:
      the onclick event handler for this element
    • setOndblclick

      public void setOndblclick(Object handler)
      Sets the ondblclick event handler for this element.
      Parameters:
      handler - the ondblclick event handler for this element
    • getOndblclick

      public Object getOndblclick()
      Returns the ondblclick event handler for this element.
      Returns:
      the ondblclick event handler for this element
    • setOnblur

      public void setOnblur(Object handler)
      Sets the onblur event handler for this element.
      Parameters:
      handler - the onblur event handler for this element
    • getOnblur

      public Object getOnblur()
      Returns the onblur event handler for this element.
      Returns:
      the onblur event handler for this element
    • setOnfocus

      public void setOnfocus(Object handler)
      Sets the onfocus event handler for this element.
      Parameters:
      handler - the onfocus event handler for this element
    • getOnfocus

      public Object getOnfocus()
      Returns the onfocus event handler for this element.
      Returns:
      the onfocus event handler for this element
    • setOnkeydown

      public void setOnkeydown(Object handler)
      Sets the onkeydown event handler for this element.
      Parameters:
      handler - the onkeydown event handler for this element
    • getOnkeydown

      public Object getOnkeydown()
      Returns the onkeydown event handler for this element.
      Returns:
      the onkeydown event handler for this element
    • setOnkeypress

      public void setOnkeypress(Object handler)
      Sets the onkeypress event handler for this element.
      Parameters:
      handler - the onkeypress event handler for this element
    • getOnkeypress

      public Object getOnkeypress()
      Returns the onkeypress event handler for this element.
      Returns:
      the onkeypress event handler for this element
    • setOnkeyup

      public void setOnkeyup(Object handler)
      Sets the onkeyup event handler for this element.
      Parameters:
      handler - the onkeyup event handler for this element
    • getOnkeyup

      public Object getOnkeyup()
      Returns the onkeyup event handler for this element.
      Returns:
      the onkeyup event handler for this element
    • setOnmousedown

      public void setOnmousedown(Object handler)
      Sets the onmousedown event handler for this element.
      Parameters:
      handler - the onmousedown event handler for this element
    • getOnmousedown

      public Object getOnmousedown()
      Returns the onmousedown event handler for this element.
      Returns:
      the onmousedown event handler for this element
    • setOnmousemove

      public void setOnmousemove(Object handler)
      Sets the onmousemove event handler for this element.
      Parameters:
      handler - the onmousemove event handler for this element
    • getOnmousemove

      public Object getOnmousemove()
      Returns the onmousemove event handler for this element.
      Returns:
      the onmousemove event handler for this element
    • setOnmouseout

      public void setOnmouseout(Object handler)
      Sets the onmouseout event handler for this element.
      Parameters:
      handler - the onmouseout event handler for this element
    • getOnmouseout

      public Object getOnmouseout()
      Returns the onmouseout event handler for this element.
      Returns:
      the onmouseout event handler for this element
    • setOnmouseover

      public void setOnmouseover(Object handler)
      Sets the onmouseover event handler for this element.
      Parameters:
      handler - the onmouseover event handler for this element
    • getOnmouseover

      public Object getOnmouseover()
      Returns the onmouseover event handler for this element.
      Returns:
      the onmouseover event handler for this element
    • setOnmouseup

      public void setOnmouseup(Object handler)
      Sets the onmouseup event handler for this element.
      Parameters:
      handler - the onmouseup event handler for this element
    • getOnmouseup

      public Object getOnmouseup()
      Returns the onmouseup event handler for this element.
      Returns:
      the onmouseup event handler for this element
    • setOncontextmenu

      public void setOncontextmenu(Object handler)
      Sets the oncontextmenu event handler for this element.
      Parameters:
      handler - the oncontextmenu event handler for this element
    • getOncontextmenu

      public Object getOncontextmenu()
      Returns the oncontextmenu event handler for this element.
      Returns:
      the oncontextmenu event handler for this element
    • setOnresize

      public void setOnresize(Object handler)
      Sets the onresize event handler for this element.
      Parameters:
      handler - the onresize event handler for this element
    • getOnresize

      public Object getOnresize()
      Returns the onresize event handler for this element.
      Returns:
      the onresize event handler for this element
    • setOnerror

      public void setOnerror(Object handler)
      Sets the onerror event handler for this element.
      Parameters:
      handler - the onerror event handler for this element
    • getOnerror

      public Object getOnerror()
      Returns the onerror event handler for this element.
      Returns:
      the onerror event handler for this element
    • getOninput

      public org.htmlunit.corejs.javascript.Function getOninput()
      Returns the oninput event handler for this element.
      Returns:
      the oninput event handler for this element
    • setOninput

      public void setOninput(Object oninput)
      Sets the oninput event handler for this element.
      Parameters:
      oninput - the oninput event handler for this element
    • getHidden

      public boolean getHidden()
      Returns the hidden property.
      Returns:
      the hidden property
    • getChildElementCount

      public int getChildElementCount()
      Returns the current number of child elements.
      Overrides:
      getChildElementCount in class Node
      Returns:
      the child element count
    • elementFromPoint

      public Object elementFromPoint(int x, int y)
      Returns the element for the specified x coordinate and the specified y coordinate. The current implementation always returns the <body> element.
      Parameters:
      x - the x offset, in pixels
      y - the y offset, in pixels
      Returns:
      the element for the specified x coordinate and the specified y coordinate
    • getForms

      public Object getForms()
      Returns the value of the forms property.
      Returns:
      the value of the forms property
    • getEmbeds

      public Object getEmbeds()
      Returns the value of the embeds property.
      Returns:
      the value of the embeds property
    • getImages

      public Object getImages()
      Returns the value of the embeds property.
      Returns:
      the value of the embeds property
    • getScripts

      public Object getScripts()
      Returns the value of the scripts property.
      Returns:
      the value of the scripts property
    • getStyleSheets

      public StyleSheetList getStyleSheets()
      Retrieves a collection of stylesheet objects representing the style sheets that correspond to each instance of a Link or CSSStyleDeclaration object in the document.
      Returns:
      styleSheet collection
    • getPlugins

      public Object getPlugins()
      Returns the value of the plugins property.
      Returns:
      the value of the plugins property
    • getLinks

      public Object getLinks()
      Returns the value of the JavaScript property links. Refer also to the MSDN documentation.
      Returns:
      the value of this property
    • getElementsByClassName

      public HTMLCollection getElementsByClassName(String className)
      Returns all the descendant elements with the specified class name.
      Parameters:
      className - the name to search for
      Returns:
      all the descendant elements with the specified class name
      See Also:
    • getElementsByName

      public NodeList getElementsByName(String elementName)
      Returns all HTML elements that have a name attribute with the specified value.

      Refer to The DOM spec for details.

      Parameters:
      elementName - - value of the name attribute to look for
      Returns:
      all HTML elements that have a name attribute with the specified value
    • hasFocus

      public boolean hasFocus()
      Returns false if the active element in the document has no focus; true if the active element in the document has focus.
      Returns:
      whether the active element in the document has focus or not
    • getTitle

      public String getTitle()
      Returns this document's title.
      Returns:
      this document's title
    • setTitle

      public void setTitle(String title)
      Sets this document's title.
      Parameters:
      title - the new title
    • getChildren

      public HTMLCollection getChildren()
      Gets the children of the current node.
      Overrides:
      getChildren in class Node
      Returns:
      the child at the given position
      See Also:
    • getContentType

      public String getContentType()
      Returns the contentType property.
      Returns:
      the contentType property
    • getSelection

      public Selection getSelection()
      Returns the current selection.
      Returns:
      the current selection
    • getHead

      public Object getHead()
      Returns this document's head element.
      Returns:
      this document's head element
    • getInputEncoding

      public String getInputEncoding()
      Returns a string representing the encoding under which the document was parsed.
      Returns:
      a string representing the encoding under which the document was parsed
    • getLastModified

      public String getLastModified()
      Returns the last modification date of the document.
      Returns:
      the date as string
      See Also:
    • parseDateOrNow

      private static Date parseDateOrNow(String stringDate)
    • releaseCapture

      public void releaseCapture()
      Mock for the moment.
    • getReadyState

      public String getReadyState()
      Returns the ready state of the document.
      Returns:
      the ready state of the document
      See Also:
    • captureEvents

      public void captureEvents(String type)
      Does nothing special anymore.
      Parameters:
      type - the type of events to capture
      See Also:
    • releaseEvents

      public void releaseEvents(String type)
      Does nothing special anymore.
      Parameters:
      type - the type of events to capture
      See Also:
    • getAlinkColor

      public String getAlinkColor()
      Returns the value of the alinkColor property.
      Returns:
      the value of the alinkColor property
    • setAlinkColor

      public void setAlinkColor(String color)
      Sets the value of the alinkColor property.
      Parameters:
      color - the value of the alinkColor property
    • getBgColor

      public String getBgColor()
      Returns the value of the bgColor property.
      Returns:
      the value of the bgColor property
      See Also:
    • setBgColor

      public void setBgColor(String color)
      Sets the value of the bgColor property.
      Parameters:
      color - the value of the bgColor property
      See Also:
    • getFgColor

      public String getFgColor()
      Returns the value of the fgColor property.
      Returns:
      the value of the fgColor property
    • setFgColor

      public void setFgColor(String color)
      Sets the value of the fgColor property.
      Parameters:
      color - the value of the fgColor property
    • getLinkColor

      public String getLinkColor()
      Returns the value of the linkColor property.
      Returns:
      the value of the linkColor property
    • setLinkColor

      public void setLinkColor(String color)
      Sets the value of the linkColor property.
      Parameters:
      color - the value of the linkColor property
    • getVlinkColor

      public String getVlinkColor()
      Returns the value of the vlinkColor property.
      Returns:
      the value of the vlinkColor property
    • setVlinkColor

      public void setVlinkColor(String color)
      Sets the value of the vlinkColor property.
      Parameters:
      color - the value of the vlinkColor property
    • getLastElementChild

      public Element getLastElementChild()
      Returns the last element child.
      Overrides:
      getLastElementChild in class Node
      Returns:
      the last element child
    • getFirstElementChild

      public Element getFirstElementChild()
      Returns the first element child.
      Overrides:
      getFirstElementChild in class Node
      Returns:
      the first element child
    • getXmlEncoding

      public String getXmlEncoding()
      Returns the xmlEncoding property.
      Returns:
      the xmlEncoding property
    • isXmlStandalone

      public boolean isXmlStandalone()
      Returns the xmlStandalone property.
      Returns:
      the xmlStandalone property
    • getXmlVersion

      public String getXmlVersion()
      Returns the xmlVersion property.
      Returns:
      the xmlVersion property
    • getOnabort

      public org.htmlunit.corejs.javascript.Function getOnabort()
      Returns the onabort event handler for this element.
      Returns:
      the onabort event handler for this element
    • setOnabort

      public void setOnabort(Object onabort)
      Sets the onabort event handler for this element.
      Parameters:
      onabort - the onabort event handler for this element
    • getOnauxclick

      public org.htmlunit.corejs.javascript.Function getOnauxclick()
      Returns the onauxclick event handler for this element.
      Returns:
      the onauxclick event handler for this element
    • setOnauxclick

      public void setOnauxclick(Object onauxclick)
      Sets the onauxclick event handler for this element.
      Parameters:
      onauxclick - the onauxclick event handler for this element
    • getOnbeforecopy

      public org.htmlunit.corejs.javascript.Function getOnbeforecopy()
      Returns the onbeforecopy event handler for this element.
      Returns:
      the onbeforecopy event handler for this element
    • setOnbeforecopy

      public void setOnbeforecopy(Object onbeforecopy)
      Sets the onbeforecopy event handler for this element.
      Parameters:
      onbeforecopy - the onbeforecopy event handler for this element
    • getOnbeforecut

      public org.htmlunit.corejs.javascript.Function getOnbeforecut()
      Returns the onbeforecut event handler for this element.
      Returns:
      the onbeforecut event handler for this element
    • setOnbeforecut

      public void setOnbeforecut(Object onbeforecut)
      Sets the onbeforecut event handler for this element.
      Parameters:
      onbeforecut - the onbeforecut event handler for this element
    • getOnbeforepaste

      public org.htmlunit.corejs.javascript.Function getOnbeforepaste()
      Returns the onbeforepaste event handler for this element.
      Returns:
      the onbeforepaste event handler for this element
    • setOnbeforepaste

      public void setOnbeforepaste(Object onbeforepaste)
      Sets the onbeforepaste event handler for this element.
      Parameters:
      onbeforepaste - the onbeforepaste event handler for this element
    • getOncancel

      public org.htmlunit.corejs.javascript.Function getOncancel()
      Returns the oncancel event handler for this element.
      Returns:
      the oncancel event handler for this element
    • setOncancel

      public void setOncancel(Object oncancel)
      Sets the oncancel event handler for this element.
      Parameters:
      oncancel - the oncancel event handler for this element
    • getOncanplay

      public org.htmlunit.corejs.javascript.Function getOncanplay()
      Returns the oncanplay event handler for this element.
      Returns:
      the oncanplay event handler for this element
    • setOncanplay

      public void setOncanplay(Object oncanplay)
      Sets the oncanplay event handler for this element.
      Parameters:
      oncanplay - the oncanplay event handler for this element
    • getOncanplaythrough

      public org.htmlunit.corejs.javascript.Function getOncanplaythrough()
      Returns the oncanplaythrough event handler for this element.
      Returns:
      the oncanplaythrough event handler for this element
    • setOncanplaythrough

      public void setOncanplaythrough(Object oncanplaythrough)
      Sets the oncanplaythrough event handler for this element.
      Parameters:
      oncanplaythrough - the oncanplaythrough event handler for this element
    • getOnchange

      public org.htmlunit.corejs.javascript.Function getOnchange()
      Returns the onchange event handler for this element.
      Returns:
      the onchange event handler for this element
    • setOnchange

      public void setOnchange(Object onchange)
      Sets the onchange event handler for this element.
      Parameters:
      onchange - the onchange event handler for this element
    • getOnclose

      public org.htmlunit.corejs.javascript.Function getOnclose()
      Returns the onclose event handler for this element.
      Returns:
      the onclose event handler for this element
    • setOnclose

      public void setOnclose(Object onclose)
      Sets the onclose event handler for this element.
      Parameters:
      onclose - the onclose event handler for this element
    • getOncopy

      public org.htmlunit.corejs.javascript.Function getOncopy()
      Returns the oncopy event handler for this element.
      Returns:
      the oncopy event handler for this element
    • setOncopy

      public void setOncopy(Object oncopy)
      Sets the oncopy event handler for this element.
      Parameters:
      oncopy - the oncopy event handler for this element
    • getOncuechange

      public org.htmlunit.corejs.javascript.Function getOncuechange()
      Returns the oncuechange event handler for this element.
      Returns:
      the oncuechange event handler for this element
    • setOncuechange

      public void setOncuechange(Object oncuechange)
      Sets the oncuechange event handler for this element.
      Parameters:
      oncuechange - the oncuechange event handler for this element
    • getOncut

      public org.htmlunit.corejs.javascript.Function getOncut()
      Returns the oncut event handler for this element.
      Returns:
      the oncut event handler for this element
    • setOncut

      public void setOncut(Object oncut)
      Sets the oncut event handler for this element.
      Parameters:
      oncut - the oncut event handler for this element
    • getOndrag

      public org.htmlunit.corejs.javascript.Function getOndrag()
      Returns the ondrag event handler for this element.
      Returns:
      the ondrag event handler for this element
    • setOndrag

      public void setOndrag(Object ondrag)
      Sets the ondrag event handler for this element.
      Parameters:
      ondrag - the ondrag event handler for this element
    • getOndragend

      public org.htmlunit.corejs.javascript.Function getOndragend()
      Returns the ondragend event handler for this element.
      Returns:
      the ondragend event handler for this element
    • setOndragend

      public void setOndragend(Object ondragend)
      Sets the ondragend event handler for this element.
      Parameters:
      ondragend - the ondragend event handler for this element
    • getOndragenter

      public org.htmlunit.corejs.javascript.Function getOndragenter()
      Returns the ondragenter event handler for this element.
      Returns:
      the ondragenter event handler for this element
    • setOndragenter

      public void setOndragenter(Object ondragenter)
      Sets the ondragenter event handler for this element.
      Parameters:
      ondragenter - the ondragenter event handler for this element
    • getOndragleave

      public org.htmlunit.corejs.javascript.Function getOndragleave()
      Returns the ondragleave event handler for this element.
      Returns:
      the ondragleave event handler for this element
    • setOndragleave

      public void setOndragleave(Object ondragleave)
      Sets the ondragleave event handler for this element.
      Parameters:
      ondragleave - the ondragleave event handler for this element
    • getOndragover

      public org.htmlunit.corejs.javascript.Function getOndragover()
      Returns the ondragover event handler for this element.
      Returns:
      the ondragover event handler for this element
    • setOndragover

      public void setOndragover(Object ondragover)
      Sets the ondragover event handler for this element.
      Parameters:
      ondragover - the ondragover event handler for this element
    • getOndragstart

      public org.htmlunit.corejs.javascript.Function getOndragstart()
      Returns the ondragstart event handler for this element.
      Returns:
      the ondragstart event handler for this element
    • setOndragstart

      public void setOndragstart(Object ondragstart)
      Sets the ondragstart event handler for this element.
      Parameters:
      ondragstart - the ondragstart event handler for this element
    • getOndrop

      public org.htmlunit.corejs.javascript.Function getOndrop()
      Returns the ondrop event handler for this element.
      Returns:
      the ondrop event handler for this element
    • setOndrop

      public void setOndrop(Object ondrop)
      Sets the ondrop event handler for this element.
      Parameters:
      ondrop - the ondrop event handler for this element
    • getOndurationchange

      public org.htmlunit.corejs.javascript.Function getOndurationchange()
      Returns the ondurationchange event handler for this element.
      Returns:
      the ondurationchange event handler for this element
    • setOndurationchange

      public void setOndurationchange(Object ondurationchange)
      Sets the ondurationchange event handler for this element.
      Parameters:
      ondurationchange - the ondurationchange event handler for this element
    • getOnemptied

      public org.htmlunit.corejs.javascript.Function getOnemptied()
      Returns the onemptied event handler for this element.
      Returns:
      the onemptied event handler for this element
    • setOnemptied

      public void setOnemptied(Object onemptied)
      Sets the onemptied event handler for this element.
      Parameters:
      onemptied - the onemptied event handler for this element
    • getOnended

      public org.htmlunit.corejs.javascript.Function getOnended()
      Returns the onended event handler for this element.
      Returns:
      the onended event handler for this element
    • setOnended

      public void setOnended(Object onended)
      Sets the onended event handler for this element.
      Parameters:
      onended - the onended event handler for this element
    • getOngotpointercapture

      public org.htmlunit.corejs.javascript.Function getOngotpointercapture()
      Returns the ongotpointercapture event handler for this element.
      Returns:
      the ongotpointercapture event handler for this element
    • setOngotpointercapture

      public void setOngotpointercapture(Object ongotpointercapture)
      Sets the ongotpointercapture event handler for this element.
      Parameters:
      ongotpointercapture - the ongotpointercapture event handler for this element
    • getOninvalid

      public org.htmlunit.corejs.javascript.Function getOninvalid()
      Returns the oninvalid event handler for this element.
      Returns:
      the oninvalid event handler for this element
    • setOninvalid

      public void setOninvalid(Object oninvalid)
      Sets the oninvalid event handler for this element.
      Parameters:
      oninvalid - the oninvalid event handler for this element
    • getOnload

      public org.htmlunit.corejs.javascript.Function getOnload()
      Returns the onload event handler for this element.
      Returns:
      the onload event handler for this element
    • setOnload

      public void setOnload(Object onload)
      Sets the onload event handler for this element.
      Parameters:
      onload - the onload event handler for this element
    • getOnloadeddata

      public org.htmlunit.corejs.javascript.Function getOnloadeddata()
      Returns the onloadeddata event handler for this element.
      Returns:
      the onloadeddata event handler for this element
    • setOnloadeddata

      public void setOnloadeddata(Object onloadeddata)
      Sets the onloadeddata event handler for this element.
      Parameters:
      onloadeddata - the onloadeddata event handler for this element
    • getOnloadedmetadata

      public org.htmlunit.corejs.javascript.Function getOnloadedmetadata()
      Returns the onloadedmetadata event handler for this element.
      Returns:
      the onloadedmetadata event handler for this element
    • setOnloadedmetadata

      public void setOnloadedmetadata(Object onloadedmetadata)
      Sets the onloadedmetadata event handler for this element.
      Parameters:
      onloadedmetadata - the onloadedmetadata event handler for this element
    • getOnloadstart

      public org.htmlunit.corejs.javascript.Function getOnloadstart()
      Returns the onloadstart event handler for this element.
      Returns:
      the onloadstart event handler for this element
    • setOnloadstart

      public void setOnloadstart(Object onloadstart)
      Sets the onloadstart event handler for this element.
      Parameters:
      onloadstart - the onloadstart event handler for this element
    • getOnlostpointercapture

      public org.htmlunit.corejs.javascript.Function getOnlostpointercapture()
      Returns the onlostpointercapture event handler for this element.
      Returns:
      the onlostpointercapture event handler for this element
    • setOnlostpointercapture

      public void setOnlostpointercapture(Object onlostpointercapture)
      Sets the onlostpointercapture event handler for this element.
      Parameters:
      onlostpointercapture - the onlostpointercapture event handler for this element
    • getOnmouseenter

      public org.htmlunit.corejs.javascript.Function getOnmouseenter()
      Returns the onmouseenter event handler for this element.
      Returns:
      the onmouseenter event handler for this element
    • setOnmouseenter

      public void setOnmouseenter(Object onmouseenter)
      Sets the onmouseenter event handler for this element.
      Parameters:
      onmouseenter - the onmouseenter event handler for this element
    • getOnmouseleave

      public org.htmlunit.corejs.javascript.Function getOnmouseleave()
      Returns the onmouseleave event handler for this element.
      Returns:
      the onmouseleave event handler for this element
    • setOnmouseleave

      public void setOnmouseleave(Object onmouseleave)
      Sets the onmouseleave event handler for this element.
      Parameters:
      onmouseleave - the onmouseleave event handler for this element
    • getOnmousewheel

      public org.htmlunit.corejs.javascript.Function getOnmousewheel()
      Returns the onmousewheel event handler for this element.
      Returns:
      the onmousewheel event handler for this element
    • setOnmousewheel

      public void setOnmousewheel(Object onmousewheel)
      Sets the onmousewheel event handler for this element.
      Parameters:
      onmousewheel - the onmousewheel event handler for this element
    • getOnpaste

      public org.htmlunit.corejs.javascript.Function getOnpaste()
      Returns the onpaste event handler for this element.
      Returns:
      the onpaste event handler for this element
    • setOnpaste

      public void setOnpaste(Object onpaste)
      Sets the onpaste event handler for this element.
      Parameters:
      onpaste - the onpaste event handler for this element
    • getOnpause

      public org.htmlunit.corejs.javascript.Function getOnpause()
      Returns the onpause event handler for this element.
      Returns:
      the onpause event handler for this element
    • setOnpause

      public void setOnpause(Object onpause)
      Sets the onpause event handler for this element.
      Parameters:
      onpause - the onpause event handler for this element
    • getOnplay

      public org.htmlunit.corejs.javascript.Function getOnplay()
      Returns the onplay event handler for this element.
      Returns:
      the onplay event handler for this element
    • setOnplay

      public void setOnplay(Object onplay)
      Sets the onplay event handler for this element.
      Parameters:
      onplay - the onplay event handler for this element
    • getOnplaying

      public org.htmlunit.corejs.javascript.Function getOnplaying()
      Returns the onplaying event handler for this element.
      Returns:
      the onplaying event handler for this element
    • setOnplaying

      public void setOnplaying(Object onplaying)
      Sets the onplaying event handler for this element.
      Parameters:
      onplaying - the onplaying event handler for this element
    • getOnpointercancel

      public org.htmlunit.corejs.javascript.Function getOnpointercancel()
      Returns the onpointercancel event handler for this element.
      Returns:
      the onpointercancel event handler for this element
    • setOnpointercancel

      public void setOnpointercancel(Object onpointercancel)
      Sets the onpointercancel event handler for this element.
      Parameters:
      onpointercancel - the onpointercancel event handler for this element
    • getOnpointerdown

      public org.htmlunit.corejs.javascript.Function getOnpointerdown()
      Returns the onpointerdown event handler for this element.
      Returns:
      the onpointerdown event handler for this element
    • setOnpointerdown

      public void setOnpointerdown(Object onpointerdown)
      Sets the onpointerdown event handler for this element.
      Parameters:
      onpointerdown - the onpointerdown event handler for this element
    • getOnpointerenter

      public org.htmlunit.corejs.javascript.Function getOnpointerenter()
      Returns the onpointerenter event handler for this element.
      Returns:
      the onpointerenter event handler for this element
    • setOnpointerenter

      public void setOnpointerenter(Object onpointerenter)
      Sets the onpointerenter event handler for this element.
      Parameters:
      onpointerenter - the onpointerenter event handler for this element
    • getOnpointerleave

      public org.htmlunit.corejs.javascript.Function getOnpointerleave()
      Returns the onpointerleave event handler for this element.
      Returns:
      the onpointerleave event handler for this element
    • setOnpointerleave

      public void setOnpointerleave(Object onpointerleave)
      Sets the onpointerleave event handler for this element.
      Parameters:
      onpointerleave - the onpointerleave event handler for this element
    • getOnpointerlockchange

      public org.htmlunit.corejs.javascript.Function getOnpointerlockchange()
      Returns the onpointerlockchange event handler for this element.
      Returns:
      the onpointerlockchange event handler for this element
    • setOnpointerlockchange

      public void setOnpointerlockchange(Object onpointerlockchange)
      Sets the onpointerlockchange event handler for this element.
      Parameters:
      onpointerlockchange - the onpointerlockchange event handler for this element
    • getOnpointerlockerror

      public org.htmlunit.corejs.javascript.Function getOnpointerlockerror()
      Returns the onpointerlockerror event handler for this element.
      Returns:
      the onpointerlockerror event handler for this element
    • setOnpointerlockerror

      public void setOnpointerlockerror(Object onpointerlockerror)
      Sets the onpointerlockerror event handler for this element.
      Parameters:
      onpointerlockerror - the onpointerlockerror event handler for this element
    • getOnpointermove

      public org.htmlunit.corejs.javascript.Function getOnpointermove()
      Returns the onpointermove event handler for this element.
      Returns:
      the onpointermove event handler for this element
    • setOnpointermove

      public void setOnpointermove(Object onpointermove)
      Sets the onpointermove event handler for this element.
      Parameters:
      onpointermove - the onpointermove event handler for this element
    • getOnpointerout

      public org.htmlunit.corejs.javascript.Function getOnpointerout()
      Returns the onpointerout event handler for this element.
      Returns:
      the onpointerout event handler for this element
    • setOnpointerout

      public void setOnpointerout(Object onpointerout)
      Sets the onpointerout event handler for this element.
      Parameters:
      onpointerout - the onpointerout event handler for this element
    • getOnpointerover

      public org.htmlunit.corejs.javascript.Function getOnpointerover()
      Returns the onpointerover event handler for this element.
      Returns:
      the onpointerover event handler for this element
    • setOnpointerover

      public void setOnpointerover(Object onpointerover)
      Sets the onpointerover event handler for this element.
      Parameters:
      onpointerover - the onpointerover event handler for this element
    • getOnpointerup

      public org.htmlunit.corejs.javascript.Function getOnpointerup()
      Returns the onpointerup event handler for this element.
      Returns:
      the onpointerup event handler for this element
    • setOnpointerup

      public void setOnpointerup(Object onpointerup)
      Sets the onpointerup event handler for this element.
      Parameters:
      onpointerup - the onpointerup event handler for this element
    • getOnprogress

      public org.htmlunit.corejs.javascript.Function getOnprogress()
      Returns the onprogress event handler for this element.
      Returns:
      the onprogress event handler for this element
    • setOnprogress

      public void setOnprogress(Object onprogress)
      Sets the onprogress event handler for this element.
      Parameters:
      onprogress - the onprogress event handler for this element
    • getOnratechange

      public org.htmlunit.corejs.javascript.Function getOnratechange()
      Returns the onratechange event handler for this element.
      Returns:
      the onratechange event handler for this element
    • setOnratechange

      public void setOnratechange(Object onratechange)
      Sets the onratechange event handler for this element.
      Parameters:
      onratechange - the onratechange event handler for this element
    • getOnreadystatechange

      public org.htmlunit.corejs.javascript.Function getOnreadystatechange()
      Returns the onreadystatechange event handler for this element.
      Returns:
      the onreadystatechange event handler for this element
    • setOnreadystatechange

      public void setOnreadystatechange(Object onreadystatechange)
      Sets the onreadystatechange event handler for this element.
      Parameters:
      onreadystatechange - the onreadystatechange event handler for this element
    • getOnreset

      public org.htmlunit.corejs.javascript.Function getOnreset()
      Returns the onreset event handler for this element.
      Returns:
      the onreset event handler for this element
    • setOnreset

      public void setOnreset(Object onreset)
      Sets the onreset event handler for this element.
      Parameters:
      onreset - the onreset event handler for this element
    • getOnscroll

      public org.htmlunit.corejs.javascript.Function getOnscroll()
      Returns the onscroll event handler for this element.
      Returns:
      the onscroll event handler for this element
    • setOnscroll

      public void setOnscroll(Object onscroll)
      Sets the onscroll event handler for this element.
      Parameters:
      onscroll - the onscroll event handler for this element
    • getOnsearch

      public org.htmlunit.corejs.javascript.Function getOnsearch()
      Returns the onsearch event handler for this element.
      Returns:
      the onsearch event handler for this element
    • setOnsearch

      public void setOnsearch(Object onsearch)
      Sets the onsearch event handler for this element.
      Parameters:
      onsearch - the onsearch event handler for this element
    • getOnseeked

      public org.htmlunit.corejs.javascript.Function getOnseeked()
      Returns the onseeked event handler for this element.
      Returns:
      the onseeked event handler for this element
    • setOnseeked

      public void setOnseeked(Object onseeked)
      Sets the onseeked event handler for this element.
      Parameters:
      onseeked - the onseeked event handler for this element
    • getOnseeking

      public org.htmlunit.corejs.javascript.Function getOnseeking()
      Returns the onseeking event handler for this element.
      Returns:
      the onseeking event handler for this element
    • setOnseeking

      public void setOnseeking(Object onseeking)
      Sets the onseeking event handler for this element.
      Parameters:
      onseeking - the onseeking event handler for this element
    • getOnselect

      public org.htmlunit.corejs.javascript.Function getOnselect()
      Returns the onselect event handler for this element.
      Returns:
      the onselect event handler for this element
    • setOnselect

      public void setOnselect(Object onselect)
      Sets the onselect event handler for this element.
      Parameters:
      onselect - the onselect event handler for this element
    • getOnselectionchange

      public org.htmlunit.corejs.javascript.Function getOnselectionchange()
      Returns the onselectionchange event handler for this element.
      Returns:
      the onselectionchange event handler for this element
    • setOnselectionchange

      public void setOnselectionchange(Object onselectionchange)
      Sets the onselectionchange event handler for this element.
      Parameters:
      onselectionchange - the onselectionchange event handler for this element
    • getOnselectstart

      public org.htmlunit.corejs.javascript.Function getOnselectstart()
      Returns the onselectstart event handler for this element.
      Returns:
      the onselectstart event handler for this element
    • setOnselectstart

      public void setOnselectstart(Object onselectstart)
      Sets the onselectstart event handler for this element.
      Parameters:
      onselectstart - the onselectstart event handler for this element
    • getOnstalled

      public org.htmlunit.corejs.javascript.Function getOnstalled()
      Returns the onstalled event handler for this element.
      Returns:
      the onstalled event handler for this element
    • setOnstalled

      public void setOnstalled(Object onstalled)
      Sets the onstalled event handler for this element.
      Parameters:
      onstalled - the onstalled event handler for this element
    • getOnsubmit

      public org.htmlunit.corejs.javascript.Function getOnsubmit()
      Returns the onsubmit event handler for this element.
      Returns:
      the onsubmit event handler for this element
    • setOnsubmit

      public void setOnsubmit(Object onsubmit)
      Sets the onsubmit event handler for this element.
      Parameters:
      onsubmit - the onsubmit event handler for this element
    • getOnsuspend

      public org.htmlunit.corejs.javascript.Function getOnsuspend()
      Returns the onsuspend event handler for this element.
      Returns:
      the onsuspend event handler for this element
    • setOnsuspend

      public void setOnsuspend(Object onsuspend)
      Sets the onsuspend event handler for this element.
      Parameters:
      onsuspend - the onsuspend event handler for this element
    • getOntimeupdate

      public org.htmlunit.corejs.javascript.Function getOntimeupdate()
      Returns the ontimeupdate event handler for this element.
      Returns:
      the ontimeupdate event handler for this element
    • setOntimeupdate

      public void setOntimeupdate(Object ontimeupdate)
      Sets the ontimeupdate event handler for this element.
      Parameters:
      ontimeupdate - the ontimeupdate event handler for this element
    • getOntoggle

      public org.htmlunit.corejs.javascript.Function getOntoggle()
      Returns the ontoggle event handler for this element.
      Returns:
      the ontoggle event handler for this element
    • setOntoggle

      public void setOntoggle(Object ontoggle)
      Sets the ontoggle event handler for this element.
      Parameters:
      ontoggle - the ontoggle event handler for this element
    • getOnvolumechange

      public org.htmlunit.corejs.javascript.Function getOnvolumechange()
      Returns the onvolumechange event handler for this element.
      Returns:
      the onvolumechange event handler for this element
    • setOnvolumechange

      public void setOnvolumechange(Object onvolumechange)
      Sets the onvolumechange event handler for this element.
      Parameters:
      onvolumechange - the onvolumechange event handler for this element
    • getOnwaiting

      public org.htmlunit.corejs.javascript.Function getOnwaiting()
      Returns the onwaiting event handler for this element.
      Returns:
      the onwaiting event handler for this element
    • setOnwaiting

      public void setOnwaiting(Object onwaiting)
      Sets the onwaiting event handler for this element.
      Parameters:
      onwaiting - the onwaiting event handler for this element
    • getOnwebkitfullscreenchange

      public org.htmlunit.corejs.javascript.Function getOnwebkitfullscreenchange()
      Returns the onwebkitfullscreenchange event handler for this element.
      Returns:
      the onwebkitfullscreenchange event handler for this element
    • setOnwebkitfullscreenchange

      public void setOnwebkitfullscreenchange(Object onwebkitfullscreenchange)
      Sets the onwebkitfullscreenchange event handler for this element.
      Parameters:
      onwebkitfullscreenchange - the onwebkitfullscreenchange event handler for this element
    • getOnwebkitfullscreenerror

      public org.htmlunit.corejs.javascript.Function getOnwebkitfullscreenerror()
      Returns the onwebkitfullscreenerror event handler for this element.
      Returns:
      the onwebkitfullscreenerror event handler for this element
    • setOnwebkitfullscreenerror

      public void setOnwebkitfullscreenerror(Object onwebkitfullscreenerror)
      Sets the onwebkitfullscreenerror event handler for this element.
      Parameters:
      onwebkitfullscreenerror - the onwebkitfullscreenerror event handler for this element
    • getOnwheel

      public org.htmlunit.corejs.javascript.Function getOnwheel()
      Returns the onwheel event handler for this element.
      Returns:
      the onwheel event handler for this element
    • setOnwheel

      public void setOnwheel(Object onwheel)
      Sets the onwheel event handler for this element.
      Parameters:
      onwheel - the onwheel event handler for this element
    • getOnafterscriptexecute

      public org.htmlunit.corejs.javascript.Function getOnafterscriptexecute()
      Returns the onafterscriptexecute event handler for this element.
      Returns:
      the onafterscriptexecute event handler for this element
    • setOnafterscriptexecute

      public void setOnafterscriptexecute(Object onafterscriptexecute)
      Sets the onafterscriptexecute event handler for this element.
      Parameters:
      onafterscriptexecute - the onafterscriptexecute event handler for this element
    • getOnbeforescriptexecute

      public org.htmlunit.corejs.javascript.Function getOnbeforescriptexecute()
      Returns the onbeforescriptexecute event handler for this element.
      Returns:
      the onbeforescriptexecute event handler for this element
    • setOnbeforescriptexecute

      public void setOnbeforescriptexecute(Object onbeforescriptexecute)
      Sets the onbeforescriptexecute event handler for this element.
      Parameters:
      onbeforescriptexecute - the onbeforescriptexecute event handler for this element
    • getOnmozfullscreenchange

      public org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
      Returns the onmozfullscreenchange event handler for this element.
      Returns:
      the onmozfullscreenchange event handler for this element
    • setOnmozfullscreenchange

      public void setOnmozfullscreenchange(Object onmozfullscreenchange)
      Sets the onmozfullscreenchange event handler for this element.
      Parameters:
      onmozfullscreenchange - the onmozfullscreenchange event handler for this element
    • getOnmozfullscreenerror

      public org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
      Returns the onmozfullscreenerror event handler for this element.
      Returns:
      the onmozfullscreenerror event handler for this element
    • setOnmozfullscreenerror

      public void setOnmozfullscreenerror(Object onmozfullscreenerror)
      Sets the onmozfullscreenerror event handler for this element.
      Parameters:
      onmozfullscreenerror - the onmozfullscreenerror event handler for this element
    • getCurrentScript

      public org.htmlunit.corejs.javascript.ScriptableObject getCurrentScript()
      Returns:
      the currentScript
    • setCurrentScript

      public void setCurrentScript(org.htmlunit.corejs.javascript.ScriptableObject script)
      Parameters:
      script - the currentScript
    • getFonts

      public org.htmlunit.corejs.javascript.ScriptableObject getFonts()
      Returns:
      the FontFaceSet
    • getAll

      public HTMLCollection getAll()
      Returns the value of the all property.
      Returns:
      the value of the all property
    • getElementById

      public HtmlUnitScriptable getElementById(String id)
      Returns the element with the specified ID, as long as it is an HTML element; null otherwise.
      Parameters:
      id - the ID to search for
      Returns:
      the element with the specified ID, as long as it is an HTML element; null otherwise
    • createProcessingInstruction

      public Object createProcessingInstruction(String target, String data)
      Creates a new ProcessingInstruction.
      Parameters:
      target - the target
      data - the data
      Returns:
      the new ProcessingInstruction
    • createCDATASection

      public Object createCDATASection(String data)
      Creates a new createCDATASection.
      Parameters:
      data - the data
      Returns:
      the new CDATASection
    • clear

      public void clear()
      Does... nothing.
      See Also:
    • contains

      public boolean contains(Object element)
      Checks whether the given element is contained within this object.
      Overrides:
      contains in class Node
      Parameters:
      element - element object that specifies the element to check
      Returns:
      true if the element is contained within this object
    • generateBlobUrl

      public String generateBlobUrl(Blob blob)
      Generate and return the URL for the given blob.
      Parameters:
      blob - the Blob containing the data
      Returns:
      the URL URL.createObjectURL(Object)
    • resolveBlobUrl

      public Blob resolveBlobUrl(String url)
      Parameters:
      url - the url to resolve
      Returns:
      the Blob for the given URL or null if not found.
    • revokeBlobUrl

      public void revokeBlobUrl(String url)
      Revokes the URL for the given blob.
      Parameters:
      url - the url to revoke URL.revokeObjectURL(Scriptable)