Class HTMLElement

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HTMLElement.ProxyDomNode
      ProxyDomNode.
      • Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLElement()
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void blur()
      Remove focus from this element.
      void click()
      Click this element.
      void focus()
      Sets the focus to this element.
      java.lang.String getAccessKey()
      Returns the accessKey property.
      protected java.lang.String getAlign​(boolean returnInvalidValues)
      Returns the value of the align property.
      HtmlUnitScriptable getAttributeNode​(java.lang.String attributeName)
      Gets the attribute node for the specified attribute.
      boolean getAutofocus()
      Returns the element autofocus property.
      ClientRect getBoundingClientRect()
      Retrieves an object that specifies the bounds of a collection of TextRectangle objects.
      protected java.lang.String getCh()
      Returns the value of the ch property.
      protected java.lang.String getChOff()
      Returns the value of the chOff property.
      java.lang.String getContentEditable()
      Returns the contentEditable property.
      DOMStringMap getDataset()
      Returns the dataset attribute.
      java.lang.String getDir()
      Returns the dir property.
      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.
      java.lang.String getEnterKeyHint()
      Returns the value of the JavaScript attribute enterKeyHint.
      HTMLFormElement getForm()
      Returns the value of the JavaScript form attribute.
      java.lang.String getInnerText()
      Gets the innerText attribute.
      java.lang.String getLang()
      Returns the lang property.
      java.lang.String getLocalName()
      Returns the local name of this attribute.
      java.lang.String getName()
      Returns the value of the JavaScript attribute name.
      java.lang.String getNodeName()
      Gets the JavaScript property nodeName for the current node.
      int getOffsetHeight()
      Returns this element's offsetHeight, which is the element height plus the element's padding plus the element's border.
      int getOffsetLeft()
      Returns this element's offsetLeft, which is the calculated left position of this element relative to the offsetParent.
      private HTMLElement getOffsetParent()
      Gets the offset parent or null if this is not an HTMLElement.
      java.lang.Object getOffsetParent_js()
      Returns this element's offsetParent.
      private java.lang.Object getOffsetParentInternal​(boolean returnNullIfFixed)  
      int getOffsetTop()
      Returns this element's offsetTop, which is the calculated top position of this element relative to the offsetParent.
      int getOffsetWidth()
      Returns this element's offsetWidth, which is the element width plus the element's padding plus the element's border.
      org.htmlunit.corejs.javascript.Function getOnabort()
      Returns the onabort event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnanimationcancel()
      Returns the onanimationcancel event handler.
      org.htmlunit.corejs.javascript.Function getOnanimationend()
      Returns the onanimationend event handler.
      org.htmlunit.corejs.javascript.Function getOnanimationiteration()
      Returns the onanimationiteration event handler.
      org.htmlunit.corejs.javascript.Function getOnanimationstart()
      Returns the onanimationstart event handler.
      org.htmlunit.corejs.javascript.Function getOnauxclick()
      Returns the onauxclick event handler for this element.
      java.lang.Object getOnblur()
      Returns the onblur event handler for this element.
      org.htmlunit.corejs.javascript.Function getOncancel()
      Returns the oncancel event handler for this element.
      org.htmlunit.corejs.javascript.Function getOncanplay()
      Returns the oncanplay event handler for this element.
      org.htmlunit.corejs.javascript.Function getOncanplaythrough()
      Returns the oncanplaythrough event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnchange()
      Returns the onchange event handler for this element.
      java.lang.Object getOnclick()
      Returns the onclick event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnclose()
      Returns the onclose event handler for this element.
      java.lang.Object getOncontextmenu()
      Returns the oncontextmenu event handler for this element.
      org.htmlunit.corejs.javascript.Function getOncopy()
      Returns the oncopy event handler for this element.
      org.htmlunit.corejs.javascript.Function getOncuechange()
      Returns the oncuechange event handler for this element.
      org.htmlunit.corejs.javascript.Function getOncut()
      Returns the oncut event handler for this element.
      java.lang.Object getOndblclick()
      Returns the ondblclick event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndrag()
      Returns the ondrag event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndragend()
      Returns the ondragend event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndragenter()
      Returns the ondragenter event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndragleave()
      Returns the ondragleave event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndragover()
      Returns the ondragover event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndragstart()
      Returns the ondragstart event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndrop()
      Returns the ondrop event handler for this element.
      org.htmlunit.corejs.javascript.Function getOndurationchange()
      Returns the ondurationchange event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnemptied()
      Returns the onemptied event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnended()
      Returns the onended event handler for this element.
      java.lang.Object getOnerror()
      Returns the onerror event handler for this element.
      java.lang.Object getOnfocus()
      Returns the onfocus event handler for this element.
      org.htmlunit.corejs.javascript.Function getOngotpointercapture()
      Returns the ongotpointercapture event handler for this element.
      org.htmlunit.corejs.javascript.Function getOninput()
      Returns the oninput event handler for this element.
      org.htmlunit.corejs.javascript.Function getOninvalid()
      Returns the oninvalid event handler for this element.
      java.lang.Object getOnkeydown()
      Returns the onkeydown event handler for this element.
      java.lang.Object getOnkeypress()
      Returns the onkeypress event handler for this element.
      java.lang.Object getOnkeyup()
      Returns the onkeyup event handler for this element.
      java.lang.Object getOnload()
      Returns the onload event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnloadeddata()
      Returns the onloadeddata event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnloadedmetadata()
      Returns the onloadedmetadata event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnloadstart()
      Returns the onloadstart event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnlostpointercapture()
      Returns the onlostpointercapture event handler for this element.
      java.lang.Object getOnmousedown()
      Returns the onmousedown event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnmouseenter()
      Returns the onmouseenter event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnmouseleave()
      Returns the onmouseleave event handler for this element.
      java.lang.Object getOnmousemove()
      Returns the onmousemove event handler for this element.
      java.lang.Object getOnmouseout()
      Returns the onmouseout event handler for this element.
      java.lang.Object getOnmouseover()
      Returns the onmouseover event handler for this element.
      java.lang.Object getOnmouseup()
      Returns the onmouseup event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnmousewheel()
      Returns the onmousewheel event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
      Returns the onmozfullscreenchange event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
      Returns the onmozfullscreenerror event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpaste()
      Returns the onpaste event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpause()
      Returns the onpause event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnplay()
      Returns the onplay event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnplaying()
      Returns the onplaying event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointercancel()
      Returns the onpointercancel event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointerdown()
      Returns the onpointerdown event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointerenter()
      Returns the onpointerenter event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointerleave()
      Returns the onpointerleave event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointermove()
      Returns the onpointermove event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointerout()
      Returns the onpointerout event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointerover()
      Returns the onpointerover event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnpointerup()
      Returns the onpointerup event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnprogress()
      Returns the onprogress event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnratechange()
      Returns the onratechange event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnreset()
      Returns the onreset event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnresize()
      Returns the onresize event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnscroll()
      Returns the onscroll event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnscrollend()
      Returns the onscrollend event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnseeked()
      Returns the onseeked event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnseeking()
      Returns the onseeking event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnselect()
      Returns the onselect event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnselectionchange()
      Returns the onselectionchange event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnselectstart()
      Returns the onselectstart event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnstalled()
      Returns the onstalled event handler for this element.
      java.lang.Object getOnsubmit()
      Returns the onsubmit event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnsuspend()
      Returns the onsuspend event handler for this element.
      org.htmlunit.corejs.javascript.Function getOntimeupdate()
      Returns the ontimeupdate event handler for this element.
      org.htmlunit.corejs.javascript.Function getOntoggle()
      Returns the ontoggle event handler for this element.
      org.htmlunit.corejs.javascript.Function getOntransitioncancel()
      Returns the ontransitioncancel event handler for this element.
      org.htmlunit.corejs.javascript.Function getOntransitionend()
      Returns the ontransitionend event handler for this element.
      org.htmlunit.corejs.javascript.Function getOntransitionrun()
      Returns the ontransitionrun event handler for this element.
      org.htmlunit.corejs.javascript.Function getOntransitionstart()
      Returns the ontransitionstart event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnvolumechange()
      Returns the onvolumechange event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnwaiting()
      Returns the onwaiting event handler for this element.
      org.htmlunit.corejs.javascript.Function getOnwheel()
      Returns the onwheel event handler for this element.
      java.lang.String getOuterText()
      The outerText property of the HTMLElement interface returns the same value as HTMLElement.innerText.
      HTMLElement getParentHTMLElement()
      Gets the first ancestor instance of HTMLElement.
      int getPosX()
      Returns this element's X position.
      int getPosY()
      Returns this element's Y position.
      java.lang.String getPrefix()
      Returns the namespace prefix.
      CSSStyleDeclaration getStyle()
      Returns the style object for this element.
      int getTabIndex()
      Returns the value of the tabIndex attribute.
      java.lang.String getTitle()
      Returns the element title.
      protected java.lang.String getVAlign​(java.lang.String[] valid, java.lang.String defaultValue)
      Returns the value of the vAlign property.
      java.lang.Object getValue()
      Returns the value of the JavaScript attribute value.
      protected java.lang.String getWidthOrHeight​(java.lang.String attributeName, java.lang.Boolean returnNegativeValues)
      Returns the value of the specified attribute (width or height).
      protected boolean isAncestorOfEventTarget​(MouseEvent event)
      Returns true if this element's node is an ancestor of the specified event's target node.
      boolean isDisabled()
      Returns true if this element is disabled.
      protected boolean isEndTagForbidden()
      Returns whether the end tag is forbidden or not.
      boolean isHidden()
      Returns the hidden property.
      boolean isIsContentEditable()
      Returns the isContentEditable property.
      protected boolean isLowerCaseInOuterHtml()  
      boolean isSpellcheck()
      Returns the spellcheck property.
      void jsConstructor()
      JavaScript constructor.
      void setAccessKey​(java.lang.String accessKey)
      Sets the accessKey property.
      protected void setAlign​(java.lang.String align, boolean ignoreIfNoError)
      Sets the value of the align property.
      void setAttribute​(java.lang.String name, java.lang.String value)
      Sets an attribute.
      void setAutofocus​(boolean newAutofocus)
      Sets the autofocus of this element.
      protected void setCh​(java.lang.String ch)
      Sets the value of the ch property.
      protected void setChOff​(java.lang.String chOff)
      Sets the value of the chOff property.
      protected void setColorAttribute​(java.lang.String name, java.lang.String value)
      Sets the specified color attribute to the specified value.
      void setContentEditable​(java.lang.String contentEditable)
      Sets the contentEditable property.
      void setDir​(java.lang.String dir)
      Sets the dir property.
      void setDisabled​(boolean disabled)
      Sets whether or not to disable this element.
      void setDomNode​(DomNode domNode)
      Sets the DOM node that corresponds to this JavaScript object.
      void setEnterKeyHint​(java.lang.Object enterKeyHint)
      Sets the value of the JavaScript attribute enterKeyHint.
      void setHidden​(boolean hidden)
      Sets the hidden property.
      void setInnerText​(java.lang.Object value)
      Replaces all child elements of this element with the supplied text value.
      void setLang​(java.lang.String lang)
      Sets the lang property.
      void setName​(java.lang.String newName)
      Sets the value of the JavaScript attribute name.
      void setOnabort​(java.lang.Object onabort)
      Sets the onabort event handler for this element.
      void setOnanimationcancel​(java.lang.Object onanimationcancel)
      Sets the onanimationcancel event handler.
      void setOnanimationend​(java.lang.Object onanimationend)
      Sets the onanimationend event handler.
      void setOnanimationiteration​(java.lang.Object onanimationiteration)
      Sets the onanimationiteration event handler.
      void setOnanimationstart​(java.lang.Object onanimationstart)
      Sets the onanimationstart event handler.
      void setOnauxclick​(java.lang.Object onauxclick)
      Sets the onauxclick event handler for this element.
      void setOnblur​(java.lang.Object handler)
      Sets the onblur event handler for this element.
      void setOncancel​(java.lang.Object oncancel)
      Sets the oncancel event handler for this element.
      void setOncanplay​(java.lang.Object oncanplay)
      Sets the oncanplay event handler for this element.
      void setOncanplaythrough​(java.lang.Object oncanplaythrough)
      Sets the oncanplaythrough event handler for this element.
      void setOnchange​(java.lang.Object onchange)
      Sets the onchange event handler for this element.
      void setOnclick​(java.lang.Object handler)
      Sets the onclick event handler for this element.
      void setOnclose​(java.lang.Object onclose)
      Sets the onclose event handler for this element.
      void setOncontextmenu​(java.lang.Object handler)
      Sets the oncontextmenu event handler for this element.
      void setOncopy​(java.lang.Object oncopy)
      Sets the oncopy event handler for this element.
      void setOncuechange​(java.lang.Object oncuechange)
      Sets the oncuechange event handler for this element.
      void setOncut​(java.lang.Object oncut)
      Sets the oncut event handler for this element.
      void setOndblclick​(java.lang.Object handler)
      Sets the ondblclick event handler for this element.
      void setOndrag​(java.lang.Object ondrag)
      Sets the ondrag event handler for this element.
      void setOndragend​(java.lang.Object ondragend)
      Sets the ondragend event handler for this element.
      void setOndragenter​(java.lang.Object ondragenter)
      Sets the ondragenter event handler for this element.
      void setOndragleave​(java.lang.Object ondragleave)
      Sets the ondragleave event handler for this element.
      void setOndragover​(java.lang.Object ondragover)
      Sets the ondragover event handler for this element.
      void setOndragstart​(java.lang.Object ondragstart)
      Sets the ondragstart event handler for this element.
      void setOndrop​(java.lang.Object ondrop)
      Sets the ondrop event handler for this element.
      void setOndurationchange​(java.lang.Object ondurationchange)
      Sets the ondurationchange event handler for this element.
      void setOnemptied​(java.lang.Object onemptied)
      Sets the onemptied event handler for this element.
      void setOnended​(java.lang.Object onended)
      Sets the onended event handler for this element.
      void setOnerror​(java.lang.Object handler)
      Sets the onerror event handler for this element.
      void setOnfocus​(java.lang.Object handler)
      Sets the onfocus event handler for this element.
      void setOngotpointercapture​(java.lang.Object ongotpointercapture)
      Sets the ongotpointercapture event handler for this element.
      void setOninput​(java.lang.Object oninput)
      Sets the oninput event handler for this element.
      void setOninvalid​(java.lang.Object oninvalid)
      Sets the oninvalid event handler for this element.
      void setOnkeydown​(java.lang.Object handler)
      Sets the onkeydown event handler for this element.
      void setOnkeypress​(java.lang.Object handler)
      Sets the onkeypress event handler for this element.
      void setOnkeyup​(java.lang.Object handler)
      Sets the onkeyup event handler for this element.
      void setOnload​(java.lang.Object onload)
      Sets the onload event handler for this element.
      void setOnloadeddata​(java.lang.Object onloadeddata)
      Sets the onloadeddata event handler for this element.
      void setOnloadedmetadata​(java.lang.Object onloadedmetadata)
      Sets the onloadedmetadata event handler for this element.
      void setOnloadstart​(java.lang.Object onloadstart)
      Sets the onloadstart event handler for this element.
      void setOnlostpointercapture​(java.lang.Object onlostpointercapture)
      Sets the onlostpointercapture event handler for this element.
      void setOnmousedown​(java.lang.Object handler)
      Sets the onmousedown event handler for this element.
      void setOnmouseenter​(java.lang.Object onmouseenter)
      Sets the onmouseenter event handler for this element.
      void setOnmouseleave​(java.lang.Object onmouseleave)
      Sets the onmouseleave event handler for this element.
      void setOnmousemove​(java.lang.Object handler)
      Sets the onmousemove event handler for this element.
      void setOnmouseout​(java.lang.Object handler)
      Sets the onmouseout event handler for this element.
      void setOnmouseover​(java.lang.Object handler)
      Sets the onmouseover event handler for this element.
      void setOnmouseup​(java.lang.Object handler)
      Sets the onmouseup event handler for this element.
      void setOnmousewheel​(java.lang.Object onmousewheel)
      Sets the onmousewheel event handler for this element.
      void setOnmozfullscreenchange​(java.lang.Object onmozfullscreenchange)
      Sets the onmozfullscreenchange event handler for this element.
      void setOnmozfullscreenerror​(java.lang.Object onmozfullscreenerror)
      Sets the onmozfullscreenerror event handler for this element.
      void setOnpaste​(java.lang.Object onpaste)
      Sets the onpaste event handler for this element.
      void setOnpause​(java.lang.Object onpause)
      Sets the onpause event handler for this element.
      void setOnplay​(java.lang.Object onplay)
      Sets the onplay event handler for this element.
      void setOnplaying​(java.lang.Object onplaying)
      Sets the onplaying event handler for this element.
      void setOnpointercancel​(java.lang.Object onpointercancel)
      Sets the onpointercancel event handler for this element.
      void setOnpointerdown​(java.lang.Object onpointerdown)
      Sets the onpointerdown event handler for this element.
      void setOnpointerenter​(java.lang.Object onpointerenter)
      Sets the onpointerenter event handler for this element.
      void setOnpointerleave​(java.lang.Object onpointerleave)
      Sets the onpointerleave event handler for this element.
      void setOnpointermove​(java.lang.Object onpointermove)
      Sets the onpointermove event handler for this element.
      void setOnpointerout​(java.lang.Object onpointerout)
      Sets the onpointerout event handler for this element.
      void setOnpointerover​(java.lang.Object onpointerover)
      Sets the onpointerover event handler for this element.
      void setOnpointerup​(java.lang.Object onpointerup)
      Sets the onpointerup event handler for this element.
      void setOnprogress​(java.lang.Object onprogress)
      Sets the onprogress event handler for this element.
      void setOnratechange​(java.lang.Object onratechange)
      Sets the onratechange event handler for this element.
      void setOnreset​(java.lang.Object onreset)
      Sets the onreset event handler for this element.
      void setOnresize​(java.lang.Object handler)
      Sets the onresize event handler for this element.
      void setOnscroll​(java.lang.Object onscroll)
      Sets the onscroll event handler for this element.
      void setOnscrollend​(java.lang.Object onscrollend)
      Sets the onscrollend event handler for this element.
      void setOnseeked​(java.lang.Object onseeked)
      Sets the onseeked event handler for this element.
      void setOnseeking​(java.lang.Object onseeking)
      Sets the onseeking event handler for this element.
      void setOnselect​(java.lang.Object onselect)
      Sets the onselect event handler for this element.
      void setOnselectionchange​(java.lang.Object onselectionchange)
      Sets the onselectionchange event handler for this element.
      void setOnselectstart​(java.lang.Object onselectstart)
      Sets the onselectstart event handler for this element.
      void setOnstalled​(java.lang.Object onstalled)
      Sets the onstalled event handler for this element.
      void setOnsubmit​(java.lang.Object onsubmit)
      Sets the onsubmit event handler for this element.
      void setOnsuspend​(java.lang.Object onsuspend)
      Sets the onsuspend event handler for this element.
      void setOntimeupdate​(java.lang.Object ontimeupdate)
      Sets the ontimeupdate event handler for this element.
      void setOntoggle​(java.lang.Object ontoggle)
      Sets the ontoggle event handler for this element.
      void setOntransitioncancel​(java.lang.Object ontransitioncancel)
      Sets the ontransitioncancel event handler for this element.
      void setOntransitionend​(java.lang.Object ontransitionend)
      Sets the ontransitionend event handler for this element.
      void setOntransitionrun​(java.lang.Object ontransitionrun)
      Sets the ontransitionrun event handler for this element.
      void setOntransitionstart​(java.lang.Object ontransitionstart)
      Sets the ontransitionstart event handler for this element.
      void setOnvolumechange​(java.lang.Object onvolumechange)
      Sets the onvolumechange event handler for this element.
      void setOnwaiting​(java.lang.Object onwaiting)
      Sets the onwaiting event handler for this element.
      void setOnwheel​(java.lang.Object onwheel)
      Sets the onwheel event handler for this element.
      void setOuterText​(java.lang.Object value)
      Replaces the whole current node with the given text.
      void setSpellcheck​(boolean spellcheck)
      Sets the spellcheck property.
      void setStyle​(java.lang.String style)
      Sets the styles for this element.
      void setTabIndex​(int tabIndex)
      Sets the tabIndex property.
      void setTextContent​(java.lang.Object value)
      Replaces all child elements of this element with the supplied text value.
      void setTitle​(java.lang.String newTitle)
      Sets the title of this element.
      protected void setVAlign​(java.lang.Object vAlign, java.lang.String[] valid)
      Sets the value of the vAlign property.
      void setValue​(java.lang.Object newValue)
      Sets the value of the JavaScript attribute value.
      protected void setWidthOrHeight​(java.lang.String attributeName, java.lang.String value, boolean allowNegativeValues)
      Sets the value of the specified attribute (width or height).
      java.lang.String toString()
      • Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • METHOD_PARAMS_OBJECT

        private static final java.lang.Class<?>[] METHOD_PARAMS_OBJECT
      • ENTER_KEY_HINT_VALUES

        private static final java.util.Set<java.lang.String> ENTER_KEY_HINT_VALUES
      • endTagForbidden_

        private boolean endTagForbidden_
    • Constructor Detail

      • HTMLElement

        public HTMLElement()
        Creates an instance.
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
        Overrides:
        jsConstructor in class Element
      • setDomNode

        public void setDomNode​(DomNode domNode)
        Sets the DOM node that corresponds to this JavaScript object.
        Overrides:
        setDomNode in class Element
        Parameters:
        domNode - the DOM node
      • getForm

        public HTMLFormElement getForm()
        Returns the value of the JavaScript form attribute.
        Returns:
        the value of the JavaScript form attribute
      • getTitle

        public java.lang.String getTitle()
        Returns the element title.
        Returns:
        the title of this element
      • setTitle

        public void setTitle​(java.lang.String newTitle)
        Sets the title of this element.
        Parameters:
        newTitle - the new title of this element
      • getAutofocus

        public boolean getAutofocus()
        Returns the element autofocus property.
        Returns:
        the autofocus of this element
      • setAutofocus

        public void setAutofocus​(boolean newAutofocus)
        Sets the autofocus of this element.
        Parameters:
        newAutofocus - the new autofocus of this element
      • isDisabled

        public boolean isDisabled()
        Returns true if this element is disabled.
        Returns:
        true if this element is disabled
      • setDisabled

        public void setDisabled​(boolean disabled)
        Sets whether or not to disable this element.
        Parameters:
        disabled - True if this is to be disabled
      • getLocalName

        public java.lang.String getLocalName()
        Returns the local name of this attribute.
        Overrides:
        getLocalName in class Element
        Returns:
        the local name of this attribute
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.String value)
        Sets an attribute. See also the DOM reference
        Overrides:
        setAttribute in class Element
        Parameters:
        name - Name of the attribute to set
        value - Value to set the attribute to
      • getAttributeNode

        public HtmlUnitScriptable getAttributeNode​(java.lang.String attributeName)
        Gets the attribute node for the specified attribute.
        Overrides:
        getAttributeNode in class Element
        Parameters:
        attributeName - the name of the attribute to retrieve
        Returns:
        the attribute node for the specified attribute
      • getInnerText

        public java.lang.String getInnerText()
        Gets the innerText attribute. (see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute)
        Returns:
        the contents of this node as text
      • setInnerText

        public void setInnerText​(java.lang.Object value)
        Replaces all child elements of this element with the supplied text value. (see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute)
        Parameters:
        value - the new value for the contents of this element
      • getOuterText

        public java.lang.String getOuterText()
        The outerText property of the HTMLElement interface returns the same value as HTMLElement.innerText. (see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/outerText)
        Returns:
        the contents of this node as text
      • setOuterText

        public void setOuterText​(java.lang.Object value)
        Replaces the whole current node with the given text. (see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute)
        Parameters:
        value - the new value for the contents of this element
      • setTextContent

        public void setTextContent​(java.lang.Object value)
        Replaces all child elements of this element with the supplied text value.
        Overrides:
        setTextContent in class Node
        Parameters:
        value - the new value for the contents of this element
      • getOffsetHeight

        public int getOffsetHeight()
        Returns this element's offsetHeight, which is the element height plus the element's padding plus the element's border. This method returns a dummy value compatible with mouse event coordinates during mouse events.
        Returns:
        this element's offsetHeight
        See Also:
        MSDN Documentation, Element Dimensions
      • getOffsetWidth

        public int getOffsetWidth()
        Returns this element's offsetWidth, which is the element width plus the element's padding plus the element's border. This method returns a dummy value compatible with mouse event coordinates during mouse events.
        Returns:
        this element's offsetWidth
        See Also:
        MSDN Documentation, Element Dimensions
      • isAncestorOfEventTarget

        protected boolean isAncestorOfEventTarget​(MouseEvent event)
        Returns true if this element's node is an ancestor of the specified event's target node.
        Parameters:
        event - the event whose target node is to be checked
        Returns:
        true if this element's node is an ancestor of the specified event's target node
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDomNodeOrDie

        public HtmlElement getDomNodeOrDie()
        Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.
        Overrides:
        getDomNodeOrDie in class Element
        Returns:
        the DOM node
      • getDomNodeOrNull

        public HtmlElement getDomNodeOrNull()
        Returns the DOM node that corresponds to this JavaScript object or null if a node hasn't been set.
        Overrides:
        getDomNodeOrNull in class HtmlUnitScriptable
        Returns:
        the DOM node or null
      • blur

        public void blur()
        Remove focus from this element.
      • focus

        public void focus()
        Sets the focus to this element.
      • getNodeName

        public java.lang.String getNodeName()
        Gets the JavaScript property nodeName for the current node.
        Overrides:
        getNodeName in class Node
        Returns:
        the node name
      • getPrefix

        public java.lang.String getPrefix()
        Returns the namespace prefix.
        Overrides:
        getPrefix in class Element
        Returns:
        the namespace prefix
      • click

        public void click()
                   throws java.io.IOException
        Click this element. This simulates the action of the user clicking with the mouse.
        Throws:
        java.io.IOException - if this click triggers a page load that encounters problems
      • isSpellcheck

        public boolean isSpellcheck()
        Returns the spellcheck property.
        Returns:
        the spellcheck property
      • setSpellcheck

        public void setSpellcheck​(boolean spellcheck)
        Sets the spellcheck property.
        Parameters:
        spellcheck - the spellcheck property
      • getLang

        public java.lang.String getLang()
        Returns the lang property.
        Returns:
        the lang property
      • setLang

        public void setLang​(java.lang.String lang)
        Sets the lang property.
        Parameters:
        lang - the lang property
      • getDir

        public java.lang.String getDir()
        Returns the dir property.
        Returns:
        the dir property
      • setDir

        public void setDir​(java.lang.String dir)
        Sets the dir property.
        Parameters:
        dir - the dir property
      • getTabIndex

        public int getTabIndex()
        Returns the value of the tabIndex attribute.
        Returns:
        the value of the tabIndex attribute
      • setTabIndex

        public void setTabIndex​(int tabIndex)
        Sets the tabIndex property.
        Parameters:
        tabIndex - the tabIndex property
      • getAccessKey

        public java.lang.String getAccessKey()
        Returns the accessKey property.
        Returns:
        the accessKey property
      • setAccessKey

        public void setAccessKey​(java.lang.String accessKey)
        Sets the accessKey property.
        Parameters:
        accessKey - the accessKey property
      • getWidthOrHeight

        protected java.lang.String getWidthOrHeight​(java.lang.String attributeName,
                                                    java.lang.Boolean returnNegativeValues)
        Returns the value of the specified attribute (width or height).
        Parameters:
        attributeName - the name of the attribute to return ("width" or "height")
        returnNegativeValues - if true, negative values are returned; if false, this method returns an empty string in lieu of negative values; if null, this method returns 0 in lieu of negative values
        Returns:
        the value of the specified attribute (width or height)
      • setWidthOrHeight

        protected void setWidthOrHeight​(java.lang.String attributeName,
                                        java.lang.String value,
                                        boolean allowNegativeValues)
        Sets the value of the specified attribute (width or height).
        Parameters:
        attributeName - the name of the attribute to set ("width" or "height")
        value - the value of the specified attribute (width or height)
        allowNegativeValues - if true, negative values will be stored; if false, negative values cause an exception to be thrown;
        this check/conversion is only done if the feature JS_WIDTH_HEIGHT_ACCEPTS_ARBITRARY_VALUES is set for the simulated browser
      • setColorAttribute

        protected void setColorAttribute​(java.lang.String name,
                                         java.lang.String value)
        Sets the specified color attribute to the specified value.
        Parameters:
        name - the color attribute's name
        value - the color attribute's value
      • getAlign

        protected java.lang.String getAlign​(boolean returnInvalidValues)
        Returns the value of the align property.
        Parameters:
        returnInvalidValues - if true, this method will return any value, including technically invalid values; if false, this method will return an empty string instead of invalid values
        Returns:
        the value of the align property
      • setAlign

        protected void setAlign​(java.lang.String align,
                                boolean ignoreIfNoError)
        Sets the value of the align property.
        Parameters:
        align - the value of the align property
        ignoreIfNoError - if true, the invocation will be a no-op if it does not trigger an error (i.e., it will not actually set the align attribute)
      • getVAlign

        protected java.lang.String getVAlign​(java.lang.String[] valid,
                                             java.lang.String defaultValue)
        Returns the value of the vAlign property.
        Parameters:
        valid - the valid values; if null, any value is valid
        defaultValue - the default value to use, if necessary
        Returns:
        the value of the vAlign property
      • setVAlign

        protected void setVAlign​(java.lang.Object vAlign,
                                 java.lang.String[] valid)
        Sets the value of the vAlign property.
        Parameters:
        vAlign - the value of the vAlign property
        valid - the valid values; if null, any value is valid
      • getCh

        protected java.lang.String getCh()
        Returns the value of the ch property.
        Returns:
        the value of the ch property
      • setCh

        protected void setCh​(java.lang.String ch)
        Sets the value of the ch property.
        Parameters:
        ch - the value of the ch property
      • getChOff

        protected java.lang.String getChOff()
        Returns the value of the chOff property.
        Returns:
        the value of the chOff property
      • setChOff

        protected void setChOff​(java.lang.String chOff)
        Sets the value of the chOff property.
        Parameters:
        chOff - the value of the chOff property
      • getPosX

        public int getPosX()
        Returns this element's X position.
        Returns:
        this element's X position
      • getPosY

        public int getPosY()
        Returns this element's Y position.
        Returns:
        this element's Y position
      • getOffsetParent

        private HTMLElement getOffsetParent()
        Gets the offset parent or null if this is not an HTMLElement.
        Returns:
        the offset parent or null
      • getOffsetParentInternal

        private java.lang.Object getOffsetParentInternal​(boolean returnNullIfFixed)
      • getBoundingClientRect

        public ClientRect getBoundingClientRect()
        Retrieves an object that specifies the bounds of a collection of TextRectangle objects.
        Overrides:
        getBoundingClientRect in class Element
        Returns:
        an object that specifies the bounds of a collection of TextRectangle objects
        See Also:
        MSDN doc
      • getDataset

        public DOMStringMap getDataset()
        Returns the dataset attribute.
        Returns:
        the dataset attribute
      • isEndTagForbidden

        protected boolean isEndTagForbidden()
        Returns whether the end tag is forbidden or not.
        Overrides:
        isEndTagForbidden in class Element
        Returns:
        whether the end tag is forbidden or not
        See Also:
        HTML 4 specs
      • isLowerCaseInOuterHtml

        protected boolean isLowerCaseInOuterHtml()
        Returns:
        whether the tag is lower case in .outerHTML/.innerHTML
      • setOnchange

        public void setOnchange​(java.lang.Object onchange)
        Sets the onchange event handler for this element.
        Parameters:
        onchange - the onchange 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
      • getOnsubmit

        public java.lang.Object getOnsubmit()
        Returns the onsubmit event handler for this element.
        Returns:
        the onsubmit event handler for this element
      • setOnsubmit

        public void setOnsubmit​(java.lang.Object onsubmit)
        Sets the onsubmit event handler for this element.
        Parameters:
        onsubmit - the onsubmit event handler for this element
      • getOnwheel

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

        public void setOnwheel​(java.lang.Object onwheel)
        Sets the onwheel event handler for this element.
        Overrides:
        setOnwheel in class Element
        Parameters:
        onwheel - the onwheel event handler for this element
      • getContentEditable

        public java.lang.String getContentEditable()
        Returns the contentEditable property.
        Returns:
        the contentEditable property
      • setContentEditable

        public void setContentEditable​(java.lang.String contentEditable)
        Sets the contentEditable property.
        Parameters:
        contentEditable - the contentEditable property to set
      • isIsContentEditable

        public boolean isIsContentEditable()
        Returns the isContentEditable property.
        Returns:
        the isContentEditable property
      • getStyle

        public CSSStyleDeclaration getStyle()
        Returns the style object for this element.
        Overrides:
        getStyle in class Element
        Returns:
        the style object for this element
      • setStyle

        public void setStyle​(java.lang.String style)
        Sets the styles for this element.
        Overrides:
        setStyle in class Element
        Parameters:
        style - the style of the element
      • setOnclick

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public org.htmlunit.corejs.javascript.Function getOnresize()
        Returns the onresize event handler for this element.
        Returns:
        the onresize event handler for this element
      • setOnerror

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

        public java.lang.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​(java.lang.Object oninput)
        Sets the oninput event handler for this element.
        Parameters:
        oninput - the oninput event handler for this element
      • isHidden

        public boolean isHidden()
        Returns the hidden property.
        Returns:
        the hidden property
      • setHidden

        public void setHidden​(boolean hidden)
        Sets the hidden property.
        Parameters:
        hidden - the hidden value
      • 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​(java.lang.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​(java.lang.Object onauxclick)
        Sets the onauxclick event handler for this element.
        Parameters:
        onauxclick - the onauxclick 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​(java.lang.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​(java.lang.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​(java.lang.Object oncanplaythrough)
        Sets the oncanplaythrough event handler for this element.
        Parameters:
        oncanplaythrough - the oncanplaythrough 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​(java.lang.Object onclose)
        Sets the onclose event handler for this element.
        Parameters:
        onclose - the onclose 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​(java.lang.Object oncuechange)
        Sets the oncuechange event handler for this element.
        Parameters:
        oncuechange - the oncuechange 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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Object oninvalid)
        Sets the oninvalid event handler for this element.
        Parameters:
        oninvalid - the oninvalid event handler for this element
      • getOnload

        public java.lang.Object getOnload()
        Returns the onload event handler for this element.
        Returns:
        the onload event handler for this element
      • setOnload

        public void setOnload​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Object onmousewheel)
        Sets the onmousewheel event handler for this element.
        Parameters:
        onmousewheel - the onmousewheel 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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Object onpointerleave)
        Sets the onpointerleave event handler for this element.
        Parameters:
        onpointerleave - the onpointerleave 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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Object onratechange)
        Sets the onratechange event handler for this element.
        Parameters:
        onratechange - the onratechange 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​(java.lang.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​(java.lang.Object onscroll)
        Sets the onscroll event handler for this element.
        Parameters:
        onscroll - the onscroll event handler for this element
      • getOnscrollend

        public org.htmlunit.corejs.javascript.Function getOnscrollend()
        Returns the onscrollend event handler for this element.
        Returns:
        the onscrollend event handler for this element
      • setOnscrollend

        public void setOnscrollend​(java.lang.Object onscrollend)
        Sets the onscrollend event handler for this element.
        Parameters:
        onscrollend - the onscrollend 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​(java.lang.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​(java.lang.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​(java.lang.Object onselect)
        Sets the onselect event handler for this element.
        Parameters:
        onselect - the onselect 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​(java.lang.Object onstalled)
        Sets the onstalled event handler for this element.
        Parameters:
        onstalled - the onstalled 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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Object onwaiting)
        Sets the onwaiting event handler for this element.
        Parameters:
        onwaiting - the onwaiting 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​(java.lang.Object oncopy)
        Sets the oncopy event handler for this element.
        Parameters:
        oncopy - the oncopy 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​(java.lang.Object oncut)
        Sets the oncut event handler for this element.
        Parameters:
        oncut - the oncut 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​(java.lang.Object onpaste)
        Sets the onpaste event handler for this element.
        Parameters:
        onpaste - the onpaste 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​(java.lang.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​(java.lang.Object onmozfullscreenerror)
        Sets the onmozfullscreenerror event handler for this element.
        Parameters:
        onmozfullscreenerror - the onmozfullscreenerror 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​(java.lang.Object onselectstart)
        Sets the onselectstart event handler for this element.
        Parameters:
        onselectstart - the onselectstart event handler for this element
      • getName

        public java.lang.String getName()
        Returns the value of the JavaScript attribute name.
        Returns:
        the value of this attribute
      • setName

        public void setName​(java.lang.String newName)
        Sets the value of the JavaScript attribute name.
        Parameters:
        newName - the new name
      • getValue

        public java.lang.Object getValue()
        Returns the value of the JavaScript attribute value.
        Returns:
        the value of this attribute
      • setValue

        public void setValue​(java.lang.Object newValue)
        Sets the value of the JavaScript attribute value.
        Parameters:
        newValue - the new value
      • getEnterKeyHint

        public java.lang.String getEnterKeyHint()
        Returns the value of the JavaScript attribute enterKeyHint.
        Returns:
        the value of this attribute
      • setEnterKeyHint

        public void setEnterKeyHint​(java.lang.Object enterKeyHint)
        Sets the value of the JavaScript attribute enterKeyHint.
        Parameters:
        enterKeyHint - the new value
      • getOnanimationcancel

        public org.htmlunit.corejs.javascript.Function getOnanimationcancel()
        Returns the onanimationcancel event handler.
        Returns:
        the onanimationcancel event handler
      • setOnanimationcancel

        public void setOnanimationcancel​(java.lang.Object onanimationcancel)
        Sets the onanimationcancel event handler.
        Parameters:
        onanimationcancel - the onanimationcancel event handler
      • getOnanimationend

        public org.htmlunit.corejs.javascript.Function getOnanimationend()
        Returns the onanimationend event handler.
        Returns:
        the onanimationend event handler
      • setOnanimationend

        public void setOnanimationend​(java.lang.Object onanimationend)
        Sets the onanimationend event handler.
        Parameters:
        onanimationend - the onanimationend event handler
      • getOnanimationiteration

        public org.htmlunit.corejs.javascript.Function getOnanimationiteration()
        Returns the onanimationiteration event handler.
        Returns:
        the onanimationiteration event handler
      • setOnanimationiteration

        public void setOnanimationiteration​(java.lang.Object onanimationiteration)
        Sets the onanimationiteration event handler.
        Parameters:
        onanimationiteration - the onanimationiteration event handler
      • getOnanimationstart

        public org.htmlunit.corejs.javascript.Function getOnanimationstart()
        Returns the onanimationstart event handler.
        Returns:
        the onanimationstart event handler
      • setOnanimationstart

        public void setOnanimationstart​(java.lang.Object onanimationstart)
        Sets the onanimationstart event handler.
        Parameters:
        onanimationstart - the onanimationstart event handler
      • 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​(java.lang.Object onselectionchange)
        Sets the onselectionchange event handler for this element.
        Parameters:
        onselectionchange - the onselectionchange event handler for this element
      • getOntransitioncancel

        public org.htmlunit.corejs.javascript.Function getOntransitioncancel()
        Returns the ontransitioncancel event handler for this element.
        Returns:
        the ontransitioncancel event handler for this element
      • setOntransitioncancel

        public void setOntransitioncancel​(java.lang.Object ontransitioncancel)
        Sets the ontransitioncancel event handler for this element.
        Parameters:
        ontransitioncancel - the ontransitioncancel event handler for this element
      • getOntransitionend

        public org.htmlunit.corejs.javascript.Function getOntransitionend()
        Returns the ontransitionend event handler for this element.
        Returns:
        the ontransitionend event handler for this element
      • setOntransitionend

        public void setOntransitionend​(java.lang.Object ontransitionend)
        Sets the ontransitionend event handler for this element.
        Parameters:
        ontransitionend - the ontransitionend event handler for this element
      • getOntransitionrun

        public org.htmlunit.corejs.javascript.Function getOntransitionrun()
        Returns the ontransitionrun event handler for this element.
        Returns:
        the ontransitionrun event handler for this element
      • setOntransitionrun

        public void setOntransitionrun​(java.lang.Object ontransitionrun)
        Sets the ontransitionrun event handler for this element.
        Parameters:
        ontransitionrun - the ontransitionrun event handler for this element
      • getOntransitionstart

        public org.htmlunit.corejs.javascript.Function getOntransitionstart()
        Returns the ontransitionstart event handler for this element.
        Returns:
        the ontransitionstart event handler for this element
      • setOntransitionstart

        public void setOntransitionstart​(java.lang.Object ontransitionstart)
        Sets the ontransitionstart event handler for this element.
        Parameters:
        ontransitionstart - the ontransitionstart event handler for this element