Class HTMLElement
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.EventTarget
org.htmlunit.javascript.host.dom.Node
org.htmlunit.javascript.host.Element
org.htmlunit.javascript.host.html.HTMLElement
- 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:
HTMLAnchorElement
,HTMLAreaElement
,HTMLBaseElement
,HTMLBGSoundElement
,HTMLBodyElement
,HTMLBRElement
,HTMLButtonElement
,HTMLCanvasElement
,HTMLDataElement
,HTMLDataListElement
,HTMLDetailsElement
,HTMLDialogElement
,HTMLDivElement
,HTMLEmbedElement
,HTMLFieldSetElement
,HTMLFontElement
,HTMLFormElement
,HTMLFrameElement
,HTMLFrameSetElement
,HTMLHeadElement
,HTMLHeadingElement
,HTMLHRElement
,HTMLHtmlElement
,HTMLIFrameElement
,HTMLImageElement
,HTMLInputElement
,HTMLLabelElement
,HTMLLegendElement
,HTMLLIElement
,HTMLLinkElement
,HTMLListElement
,HTMLMapElement
,HTMLMarqueeElement
,HTMLMediaElement
,HTMLMetaElement
,HTMLMeterElement
,HTMLModElement
,HTMLObjectElement
,HTMLOptGroupElement
,HTMLOptionElement
,HTMLOutputElement
,HTMLParagraphElement
,HTMLParamElement
,HTMLPictureElement
,HTMLPreElement
,HTMLProgressElement
,HTMLQuoteElement
,HTMLScriptElement
,HTMLSelectElement
,HTMLSlotElement
,HTMLSourceElement
,HTMLSpanElement
,HTMLStyleElement
,HTMLTableCaptionElement
,HTMLTableComponent
,HTMLTemplateElement
,HTMLTextAreaElement
,HTMLTimeElement
,HTMLTitleElement
,HTMLTrackElement
,HTMLUnknownElement
,RowContainer
The JavaScript object
HTMLElement
which is the base class for all HTML
objects. This will typically wrap an instance of HtmlElement
.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
-
Field Summary
FieldsFields inherited from class org.htmlunit.javascript.host.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
blur()
Remove focus from this element.void
click()
Click this element.void
focus()
Sets the focus to this element.Returns theaccessKey
property.protected String
getAlign
(boolean returnInvalidValues) Returns the value of thealign
property.getAttributeNode
(String attributeName) Gets the attribute node for the specified attribute.boolean
Returns the element autofocus property.Retrieves an object that specifies the bounds of a collection of TextRectangle objects.protected String
getCh()
Returns the value of thech
property.protected String
getChOff()
Returns the value of thechOff
property.Returns thecontentEditable
property.Returns thedataset
attribute.getDir()
Returns thedir
property.Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.Returns the DOM node that corresponds to this JavaScript object or null if a node hasn't been set.Returns the value of the JavaScript attributeenterKeyHint
.getForm()
Returns the value of the JavaScriptform
attribute.Gets the innerText attribute.getLang()
Returns thelang
property.Returns the local name of this attribute.getName()
Returns the value of the JavaScript attributename
.Gets the JavaScript propertynodeName
for the current node.int
Returns this element'soffsetHeight
, which is the element height plus the element's padding plus the element's border.int
Returns this element'soffsetLeft
, which is the calculated left position of this element relative to theoffsetParent
.private HTMLElement
Gets the offset parent ornull
if this is not anHTMLElement
.Returns this element'soffsetParent
.private Object
getOffsetParentInternal
(boolean returnNullIfFixed) int
Returns this element'soffsetTop
, which is the calculated top position of this element relative to theoffsetParent
.int
Returns this element'soffsetWidth
, which is the element width plus the element's padding plus the element's border.org.htmlunit.corejs.javascript.Function
Returns theonabort
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonanimationcancel
event handler.org.htmlunit.corejs.javascript.Function
Returns theonanimationend
event handler.org.htmlunit.corejs.javascript.Function
Returns theonanimationiteration
event handler.org.htmlunit.corejs.javascript.Function
Returns theonanimationstart
event handler.org.htmlunit.corejs.javascript.Function
Returns theonauxclick
event handler for this element.Returns theonblur
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoncancel
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoncanplay
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoncanplaythrough
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonchange
event handler for this element.Returns theonclick
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonclose
event handler for this element.Returns theoncontextmenu
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoncopy
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoncuechange
event handler for this element.org.htmlunit.corejs.javascript.Function
getOncut()
Returns theoncut
event handler for this element.Returns theondblclick
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondrag
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondragend
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondragenter
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondragleave
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondragover
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondragstart
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondrop
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theondurationchange
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonemptied
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonended
event handler for this element.Returns theonerror
event handler for this element.Returns theonfocus
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theongotpointercapture
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoninput
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theoninvalid
event handler for this element.Returns theonkeydown
event handler for this element.Returns theonkeypress
event handler for this element.Returns theonkeyup
event handler for this element.Returns theonload
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonloadeddata
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonloadedmetadata
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonloadstart
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonlostpointercapture
event handler for this element.Returns theonmousedown
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmouseenter
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmouseleave
event handler for this element.Returns theonmousemove
event handler for this element.Returns theonmouseout
event handler for this element.Returns theonmouseover
event handler for this element.Returns theonmouseup
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmousewheel
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmozfullscreenchange
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmozfullscreenerror
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpaste
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpause
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonplay
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonplaying
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointercancel
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointerdown
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointerenter
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointerleave
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointermove
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointerout
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointerover
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpointerup
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonprogress
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonratechange
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonreset
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonresize
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonscroll
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonscrollend
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonseeked
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonseeking
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonselect
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonselectionchange
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonselectstart
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonstalled
event handler for this element.Returns theonsubmit
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonsuspend
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theontimeupdate
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theontoggle
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theontransitioncancel
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theontransitionend
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theontransitionrun
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theontransitionstart
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonvolumechange
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonwaiting
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonwheel
event handler for this element.The outerText property of the HTMLElement interface returns the same value as HTMLElement.innerText.Gets the first ancestor instance ofHTMLElement
.int
getPosX()
Returns this element's X position.int
getPosY()
Returns this element's Y position.Returns the namespace prefix.getStyle()
Returns the style object for this element.int
Returns the value of the tabIndex attribute.getTitle()
Returns the element title.protected String
Returns the value of thevAlign
property.getValue()
Returns the value of the JavaScript attributevalue
.protected String
getWidthOrHeight
(String attributeName, Boolean returnNegativeValues) Returns the value of the specified attribute (width or height).protected boolean
Returnstrue
if this element's node is an ancestor of the specified event's target node.boolean
Returns true if this element is disabled.protected boolean
Returns whether the end tag is forbidden or not.boolean
isHidden()
Returns thehidden
property.boolean
Returns theisContentEditable
property.protected boolean
boolean
Returns thespellcheck
property.void
JavaScript constructor.void
setAccessKey
(String accessKey) Sets theaccessKey
property.protected void
Sets the value of thealign
property.void
setAttribute
(String name, String value) Sets an attribute.void
setAutofocus
(boolean newAutofocus) Sets the autofocus of this element.protected void
Sets the value of thech
property.protected void
Sets the value of thechOff
property.protected void
setColorAttribute
(String name, String value) Sets the specified color attribute to the specified value.void
setContentEditable
(String contentEditable) Sets thecontentEditable
property.void
Sets thedir
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
(Object enterKeyHint) Sets the value of the JavaScript attributeenterKeyHint
.void
setHidden
(boolean hidden) Sets thehidden
property.void
setInnerText
(Object value) Replaces all child elements of this element with the supplied text value.void
Sets thelang
property.void
Sets the value of the JavaScript attributename
.void
setOnabort
(Object onabort) Sets theonabort
event handler for this element.void
setOnanimationcancel
(Object onanimationcancel) Sets theonanimationcancel
event handler.void
setOnanimationend
(Object onanimationend) Sets theonanimationend
event handler.void
setOnanimationiteration
(Object onanimationiteration) Sets theonanimationiteration
event handler.void
setOnanimationstart
(Object onanimationstart) Sets theonanimationstart
event handler.void
setOnauxclick
(Object onauxclick) Sets theonauxclick
event handler for this element.void
Sets theonblur
event handler for this element.void
setOncancel
(Object oncancel) Sets theoncancel
event handler for this element.void
setOncanplay
(Object oncanplay) Sets theoncanplay
event handler for this element.void
setOncanplaythrough
(Object oncanplaythrough) Sets theoncanplaythrough
event handler for this element.void
setOnchange
(Object onchange) Sets theonchange
event handler for this element.void
setOnclick
(Object handler) Sets theonclick
event handler for this element.void
setOnclose
(Object onclose) Sets theonclose
event handler for this element.void
setOncontextmenu
(Object handler) Sets theoncontextmenu
event handler for this element.void
Sets theoncopy
event handler for this element.void
setOncuechange
(Object oncuechange) Sets theoncuechange
event handler for this element.void
Sets theoncut
event handler for this element.void
setOndblclick
(Object handler) Sets theondblclick
event handler for this element.void
Sets theondrag
event handler for this element.void
setOndragend
(Object ondragend) Sets theondragend
event handler for this element.void
setOndragenter
(Object ondragenter) Sets theondragenter
event handler for this element.void
setOndragleave
(Object ondragleave) Sets theondragleave
event handler for this element.void
setOndragover
(Object ondragover) Sets theondragover
event handler for this element.void
setOndragstart
(Object ondragstart) Sets theondragstart
event handler for this element.void
Sets theondrop
event handler for this element.void
setOndurationchange
(Object ondurationchange) Sets theondurationchange
event handler for this element.void
setOnemptied
(Object onemptied) Sets theonemptied
event handler for this element.void
setOnended
(Object onended) Sets theonended
event handler for this element.void
setOnerror
(Object handler) Sets theonerror
event handler for this element.void
setOnfocus
(Object handler) Sets theonfocus
event handler for this element.void
setOngotpointercapture
(Object ongotpointercapture) Sets theongotpointercapture
event handler for this element.void
setOninput
(Object oninput) Sets theoninput
event handler for this element.void
setOninvalid
(Object oninvalid) Sets theoninvalid
event handler for this element.void
setOnkeydown
(Object handler) Sets theonkeydown
event handler for this element.void
setOnkeypress
(Object handler) Sets theonkeypress
event handler for this element.void
setOnkeyup
(Object handler) Sets theonkeyup
event handler for this element.void
Sets theonload
event handler for this element.void
setOnloadeddata
(Object onloadeddata) Sets theonloadeddata
event handler for this element.void
setOnloadedmetadata
(Object onloadedmetadata) Sets theonloadedmetadata
event handler for this element.void
setOnloadstart
(Object onloadstart) Sets theonloadstart
event handler for this element.void
setOnlostpointercapture
(Object onlostpointercapture) Sets theonlostpointercapture
event handler for this element.void
setOnmousedown
(Object handler) Sets theonmousedown
event handler for this element.void
setOnmouseenter
(Object onmouseenter) Sets theonmouseenter
event handler for this element.void
setOnmouseleave
(Object onmouseleave) Sets theonmouseleave
event handler for this element.void
setOnmousemove
(Object handler) Sets theonmousemove
event handler for this element.void
setOnmouseout
(Object handler) Sets theonmouseout
event handler for this element.void
setOnmouseover
(Object handler) Sets theonmouseover
event handler for this element.void
setOnmouseup
(Object handler) Sets theonmouseup
event handler for this element.void
setOnmousewheel
(Object onmousewheel) Sets theonmousewheel
event handler for this element.void
setOnmozfullscreenchange
(Object onmozfullscreenchange) Sets theonmozfullscreenchange
event handler for this element.void
setOnmozfullscreenerror
(Object onmozfullscreenerror) Sets theonmozfullscreenerror
event handler for this element.void
setOnpaste
(Object onpaste) Sets theonpaste
event handler for this element.void
setOnpause
(Object onpause) Sets theonpause
event handler for this element.void
Sets theonplay
event handler for this element.void
setOnplaying
(Object onplaying) Sets theonplaying
event handler for this element.void
setOnpointercancel
(Object onpointercancel) Sets theonpointercancel
event handler for this element.void
setOnpointerdown
(Object onpointerdown) Sets theonpointerdown
event handler for this element.void
setOnpointerenter
(Object onpointerenter) Sets theonpointerenter
event handler for this element.void
setOnpointerleave
(Object onpointerleave) Sets theonpointerleave
event handler for this element.void
setOnpointermove
(Object onpointermove) Sets theonpointermove
event handler for this element.void
setOnpointerout
(Object onpointerout) Sets theonpointerout
event handler for this element.void
setOnpointerover
(Object onpointerover) Sets theonpointerover
event handler for this element.void
setOnpointerup
(Object onpointerup) Sets theonpointerup
event handler for this element.void
setOnprogress
(Object onprogress) Sets theonprogress
event handler for this element.void
setOnratechange
(Object onratechange) Sets theonratechange
event handler for this element.void
setOnreset
(Object onreset) Sets theonreset
event handler for this element.void
setOnresize
(Object handler) Sets theonresize
event handler for this element.void
setOnscroll
(Object onscroll) Sets theonscroll
event handler for this element.void
setOnscrollend
(Object onscrollend) Sets theonscrollend
event handler for this element.void
setOnseeked
(Object onseeked) Sets theonseeked
event handler for this element.void
setOnseeking
(Object onseeking) Sets theonseeking
event handler for this element.void
setOnselect
(Object onselect) Sets theonselect
event handler for this element.void
setOnselectionchange
(Object onselectionchange) Sets theonselectionchange
event handler for this element.void
setOnselectstart
(Object onselectstart) Sets theonselectstart
event handler for this element.void
setOnstalled
(Object onstalled) Sets theonstalled
event handler for this element.void
setOnsubmit
(Object onsubmit) Sets theonsubmit
event handler for this element.void
setOnsuspend
(Object onsuspend) Sets theonsuspend
event handler for this element.void
setOntimeupdate
(Object ontimeupdate) Sets theontimeupdate
event handler for this element.void
setOntoggle
(Object ontoggle) Sets theontoggle
event handler for this element.void
setOntransitioncancel
(Object ontransitioncancel) Sets theontransitioncancel
event handler for this element.void
setOntransitionend
(Object ontransitionend) Sets theontransitionend
event handler for this element.void
setOntransitionrun
(Object ontransitionrun) Sets theontransitionrun
event handler for this element.void
setOntransitionstart
(Object ontransitionstart) Sets theontransitionstart
event handler for this element.void
setOnvolumechange
(Object onvolumechange) Sets theonvolumechange
event handler for this element.void
setOnwaiting
(Object onwaiting) Sets theonwaiting
event handler for this element.void
setOnwheel
(Object onwheel) Sets theonwheel
event handler for this element.void
setOuterText
(Object value) Replaces the whole current node with the given text.void
setSpellcheck
(boolean spellcheck) Sets thespellcheck
property.void
Sets the styles for this element.void
setTabIndex
(int tabIndex) Sets thetabIndex
property.void
setTextContent
(Object value) Replaces all child elements of this element with the supplied text value.void
Sets the title of this element.protected void
Sets the value of thevAlign
property.void
Sets the value of the JavaScript attributevalue
.protected void
setWidthOrHeight
(String attributeName, String value, boolean allowNegativeValues) Sets the value of the specified attribute (width or height).toString()
Methods inherited from class org.htmlunit.javascript.host.Element
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, innerHTML, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isDisplayNone, matches, mozMatchesSelector, prepend, printChildren, printNode, querySelector, querySelectorAll, releaseCapture, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceWith, scroll, scrollBy, scrollIntoView, scrollIntoViewIfNeeded, scrollTo, setAttributeNode, setAttributeNS, setCapture, setClassName_js, setId, setInnerHTML, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelector
Methods inherited from class org.htmlunit.javascript.host.dom.Node
after, append, appendChild, before, cloneNode, compareDocumentPosition, contains, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getRootNode, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
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
-
Field Details
-
METHOD_PARAMS_OBJECT
-
ENTER_KEY_HINT_VALUES
-
endTagForbidden_
private boolean endTagForbidden_
-
-
Constructor Details
-
HTMLElement
public HTMLElement()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor.- Overrides:
jsConstructor
in classElement
-
setDomNode
Sets the DOM node that corresponds to this JavaScript object.- Overrides:
setDomNode
in classElement
- Parameters:
domNode
- the DOM node
-
getForm
Returns the value of the JavaScriptform
attribute.- Returns:
- the value of the JavaScript
form
attribute
-
getTitle
Returns the element title.- Returns:
- the title of this element
-
setTitle
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
Returns the local name of this attribute.- Overrides:
getLocalName
in classElement
- Returns:
- the local name of this attribute
-
setAttribute
Sets an attribute. See also the DOM reference- Overrides:
setAttribute
in classElement
- Parameters:
name
- Name of the attribute to setvalue
- Value to set the attribute to
-
getAttributeNode
Gets the attribute node for the specified attribute.- Overrides:
getAttributeNode
in classElement
- Parameters:
attributeName
- the name of the attribute to retrieve- Returns:
- the attribute node for the specified attribute
-
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
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
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
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
Replaces all child elements of this element with the supplied text value.- Overrides:
setTextContent
in classNode
- Parameters:
value
- the new value for the contents of this element
-
getOffsetHeight
public int getOffsetHeight()Returns this element'soffsetHeight
, 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:
-
getOffsetWidth
public int getOffsetWidth()Returns this element'soffsetWidth
, 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:
-
isAncestorOfEventTarget
Returnstrue
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
-
getParentHTMLElement
Gets the first ancestor instance ofHTMLElement
. It is mostly identical toNode.getParent()
except that it skips XML nodes.- Returns:
- the parent HTML element
- See Also:
-
getDomNodeOrDie
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.- Overrides:
getDomNodeOrDie
in classElement
- Returns:
- the DOM node
-
getDomNodeOrNull
Returns the DOM node that corresponds to this JavaScript object or null if a node hasn't been set.- Overrides:
getDomNodeOrNull
in classHtmlUnitScriptable
- 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
Gets the JavaScript propertynodeName
for the current node.- Overrides:
getNodeName
in classNode
- Returns:
- the node name
-
getPrefix
Returns the namespace prefix. -
click
Click this element. This simulates the action of the user clicking with the mouse.- Throws:
IOException
- if this click triggers a page load that encounters problems
-
isSpellcheck
public boolean isSpellcheck()Returns thespellcheck
property.- Returns:
- the
spellcheck
property
-
setSpellcheck
public void setSpellcheck(boolean spellcheck) Sets thespellcheck
property.- Parameters:
spellcheck
- thespellcheck
property
-
getLang
Returns thelang
property.- Returns:
- the
lang
property
-
setLang
Sets thelang
property.- Parameters:
lang
- thelang
property
-
getDir
Returns thedir
property.- Returns:
- the
dir
property
-
setDir
Sets thedir
property.- Parameters:
dir
- thedir
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 thetabIndex
property.- Parameters:
tabIndex
- thetabIndex
property
-
getAccessKey
Returns theaccessKey
property.- Returns:
- the
accessKey
property
-
setAccessKey
Sets theaccessKey
property.- Parameters:
accessKey
- theaccessKey
property
-
getWidthOrHeight
Returns the value of the specified attribute (width or height).- Parameters:
attributeName
- the name of the attribute to return ("width"
or"height"
)returnNegativeValues
- iftrue
, negative values are returned; iffalse
, this method returns an empty string in lieu of negative values; ifnull
, this method returns0
in lieu of negative values- Returns:
- the value of the specified attribute (width or height)
-
setWidthOrHeight
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
- iftrue
, negative values will be stored; iffalse
, 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
Sets the specified color attribute to the specified value.- Parameters:
name
- the color attribute's namevalue
- the color attribute's value
-
getAlign
Returns the value of thealign
property.- Parameters:
returnInvalidValues
- iftrue
, this method will return any value, including technically invalid values; iffalse
, this method will return an empty string instead of invalid values- Returns:
- the value of the
align
property
-
setAlign
Sets the value of thealign
property.- Parameters:
align
- the value of thealign
propertyignoreIfNoError
- iftrue
, 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
Returns the value of thevAlign
property.- Parameters:
valid
- the valid values; ifnull
, any value is validdefaultValue
- the default value to use, if necessary- Returns:
- the value of the
vAlign
property
-
setVAlign
Sets the value of thevAlign
property.- Parameters:
vAlign
- the value of thevAlign
propertyvalid
- the valid values; ifnull
, any value is valid
-
getCh
Returns the value of thech
property.- Returns:
- the value of the
ch
property
-
setCh
Sets the value of thech
property.- Parameters:
ch
- the value of thech
property
-
getChOff
Returns the value of thechOff
property.- Returns:
- the value of the
chOff
property
-
setChOff
Sets the value of thechOff
property.- Parameters:
chOff
- the value of thechOff
property
-
getOffsetLeft
public int getOffsetLeft()Returns this element'soffsetLeft
, which is the calculated left position of this element relative to theoffsetParent
.- Returns:
- this element's
offsetLeft
- See Also:
-
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
Gets the offset parent ornull
if this is not anHTMLElement
.- Returns:
- the offset parent or
null
-
getOffsetTop
public int getOffsetTop()Returns this element'soffsetTop
, which is the calculated top position of this element relative to theoffsetParent
.- Returns:
- this element's
offsetTop
- See Also:
-
getOffsetParent_js
Returns this element'soffsetParent
. TheoffsetLeft
andoffsetTop
attributes are relative to theoffsetParent
.- Returns:
- this element's
offsetParent
. This may beundefined
when this node is not attached ornull
forbody
. - See Also:
-
getOffsetParentInternal
-
getBoundingClientRect
Retrieves an object that specifies the bounds of a collection of TextRectangle objects.- Overrides:
getBoundingClientRect
in classElement
- Returns:
- an object that specifies the bounds of a collection of TextRectangle objects
- See Also:
-
getDataset
Returns thedataset
attribute.- Returns:
- the
dataset
attribute
-
isEndTagForbidden
protected boolean isEndTagForbidden()Returns whether the end tag is forbidden or not.- Overrides:
isEndTagForbidden
in classElement
- Returns:
- whether the end tag is forbidden or not
- See Also:
-
isLowerCaseInOuterHtml
protected boolean isLowerCaseInOuterHtml()- Returns:
- whether the tag is lower case in .outerHTML/.innerHTML
-
setOnchange
Sets theonchange
event handler for this element.- Parameters:
onchange
- theonchange
event handler for this element
-
getOnchange
public org.htmlunit.corejs.javascript.Function getOnchange()Returns theonchange
event handler for this element.- Returns:
- the
onchange
event handler for this element
-
getOnsubmit
Returns theonsubmit
event handler for this element.- Returns:
- the
onsubmit
event handler for this element
-
setOnsubmit
Sets theonsubmit
event handler for this element.- Parameters:
onsubmit
- theonsubmit
event handler for this element
-
getOnwheel
public org.htmlunit.corejs.javascript.Function getOnwheel()Returns theonwheel
event handler for this element.- Overrides:
getOnwheel
in classElement
- Returns:
- the
onwheel
event handler for this element
-
setOnwheel
Sets theonwheel
event handler for this element.- Overrides:
setOnwheel
in classElement
- Parameters:
onwheel
- theonwheel
event handler for this element
-
getContentEditable
Returns thecontentEditable
property.- Returns:
- the
contentEditable
property
-
setContentEditable
Sets thecontentEditable
property.- Parameters:
contentEditable
- thecontentEditable
property to set
-
isIsContentEditable
public boolean isIsContentEditable()Returns theisContentEditable
property.- Returns:
- the
isContentEditable
property
-
getStyle
Returns the style object for this element. -
setStyle
Sets the styles for this element. -
setOnclick
Sets theonclick
event handler for this element.- Parameters:
handler
- theonclick
event handler for this element
-
getOnclick
Returns theonclick
event handler for this element.- Returns:
- the
onclick
event handler for this element
-
setOndblclick
Sets theondblclick
event handler for this element.- Parameters:
handler
- theondblclick
event handler for this element
-
getOndblclick
Returns theondblclick
event handler for this element.- Returns:
- the
ondblclick
event handler for this element
-
setOnblur
Sets theonblur
event handler for this element.- Parameters:
handler
- theonblur
event handler for this element
-
getOnblur
Returns theonblur
event handler for this element.- Returns:
- the
onblur
event handler for this element
-
setOnfocus
Sets theonfocus
event handler for this element.- Parameters:
handler
- theonfocus
event handler for this element
-
getOnfocus
Returns theonfocus
event handler for this element.- Returns:
- the
onfocus
event handler for this element
-
setOnkeydown
Sets theonkeydown
event handler for this element.- Parameters:
handler
- theonkeydown
event handler for this element
-
getOnkeydown
Returns theonkeydown
event handler for this element.- Returns:
- the
onkeydown
event handler for this element
-
setOnkeypress
Sets theonkeypress
event handler for this element.- Parameters:
handler
- theonkeypress
event handler for this element
-
getOnkeypress
Returns theonkeypress
event handler for this element.- Returns:
- the
onkeypress
event handler for this element
-
setOnkeyup
Sets theonkeyup
event handler for this element.- Parameters:
handler
- theonkeyup
event handler for this element
-
getOnkeyup
Returns theonkeyup
event handler for this element.- Returns:
- the
onkeyup
event handler for this element
-
setOnmousedown
Sets theonmousedown
event handler for this element.- Parameters:
handler
- theonmousedown
event handler for this element
-
getOnmousedown
Returns theonmousedown
event handler for this element.- Returns:
- the
onmousedown
event handler for this element
-
setOnmousemove
Sets theonmousemove
event handler for this element.- Parameters:
handler
- theonmousemove
event handler for this element
-
getOnmousemove
Returns theonmousemove
event handler for this element.- Returns:
- the
onmousemove
event handler for this element
-
setOnmouseout
Sets theonmouseout
event handler for this element.- Parameters:
handler
- theonmouseout
event handler for this element
-
getOnmouseout
Returns theonmouseout
event handler for this element.- Returns:
- the
onmouseout
event handler for this element
-
setOnmouseover
Sets theonmouseover
event handler for this element.- Parameters:
handler
- theonmouseover
event handler for this element
-
getOnmouseover
Returns theonmouseover
event handler for this element.- Returns:
- the
onmouseover
event handler for this element
-
setOnmouseup
Sets theonmouseup
event handler for this element.- Parameters:
handler
- theonmouseup
event handler for this element
-
getOnmouseup
Returns theonmouseup
event handler for this element.- Returns:
- the
onmouseup
event handler for this element
-
setOnresize
Sets theonresize
event handler for this element.- Parameters:
handler
- theonresize
event handler for this element
-
getOnresize
public org.htmlunit.corejs.javascript.Function getOnresize()Returns theonresize
event handler for this element.- Returns:
- the
onresize
event handler for this element
-
setOnerror
Sets theonerror
event handler for this element.- Parameters:
handler
- theonerror
event handler for this element
-
getOnerror
Returns theonerror
event handler for this element.- Returns:
- the
onerror
event handler for this element
-
getOninput
public org.htmlunit.corejs.javascript.Function getOninput()Returns theoninput
event handler for this element.- Returns:
- the
oninput
event handler for this element
-
setOninput
Sets theoninput
event handler for this element.- Parameters:
oninput
- theoninput
event handler for this element
-
isHidden
public boolean isHidden()Returns thehidden
property.- Returns:
- the
hidden
property
-
setHidden
public void setHidden(boolean hidden) Sets thehidden
property.- Parameters:
hidden
- thehidden
value
-
getOnabort
public org.htmlunit.corejs.javascript.Function getOnabort()Returns theonabort
event handler for this element.- Returns:
- the
onabort
event handler for this element
-
setOnabort
Sets theonabort
event handler for this element.- Parameters:
onabort
- theonabort
event handler for this element
-
getOnauxclick
public org.htmlunit.corejs.javascript.Function getOnauxclick()Returns theonauxclick
event handler for this element.- Returns:
- the
onauxclick
event handler for this element
-
setOnauxclick
Sets theonauxclick
event handler for this element.- Parameters:
onauxclick
- theonauxclick
event handler for this element
-
getOncancel
public org.htmlunit.corejs.javascript.Function getOncancel()Returns theoncancel
event handler for this element.- Returns:
- the
oncancel
event handler for this element
-
setOncancel
Sets theoncancel
event handler for this element.- Parameters:
oncancel
- theoncancel
event handler for this element
-
getOncanplay
public org.htmlunit.corejs.javascript.Function getOncanplay()Returns theoncanplay
event handler for this element.- Returns:
- the
oncanplay
event handler for this element
-
setOncanplay
Sets theoncanplay
event handler for this element.- Parameters:
oncanplay
- theoncanplay
event handler for this element
-
getOncanplaythrough
public org.htmlunit.corejs.javascript.Function getOncanplaythrough()Returns theoncanplaythrough
event handler for this element.- Returns:
- the
oncanplaythrough
event handler for this element
-
setOncanplaythrough
Sets theoncanplaythrough
event handler for this element.- Parameters:
oncanplaythrough
- theoncanplaythrough
event handler for this element
-
getOnclose
public org.htmlunit.corejs.javascript.Function getOnclose()Returns theonclose
event handler for this element.- Returns:
- the
onclose
event handler for this element
-
setOnclose
Sets theonclose
event handler for this element.- Parameters:
onclose
- theonclose
event handler for this element
-
getOncuechange
public org.htmlunit.corejs.javascript.Function getOncuechange()Returns theoncuechange
event handler for this element.- Returns:
- the
oncuechange
event handler for this element
-
setOncuechange
Sets theoncuechange
event handler for this element.- Parameters:
oncuechange
- theoncuechange
event handler for this element
-
getOndrag
public org.htmlunit.corejs.javascript.Function getOndrag()Returns theondrag
event handler for this element.- Returns:
- the
ondrag
event handler for this element
-
setOndrag
Sets theondrag
event handler for this element.- Parameters:
ondrag
- theondrag
event handler for this element
-
getOndragend
public org.htmlunit.corejs.javascript.Function getOndragend()Returns theondragend
event handler for this element.- Returns:
- the
ondragend
event handler for this element
-
setOndragend
Sets theondragend
event handler for this element.- Parameters:
ondragend
- theondragend
event handler for this element
-
getOndragenter
public org.htmlunit.corejs.javascript.Function getOndragenter()Returns theondragenter
event handler for this element.- Returns:
- the
ondragenter
event handler for this element
-
setOndragenter
Sets theondragenter
event handler for this element.- Parameters:
ondragenter
- theondragenter
event handler for this element
-
getOndragleave
public org.htmlunit.corejs.javascript.Function getOndragleave()Returns theondragleave
event handler for this element.- Returns:
- the
ondragleave
event handler for this element
-
setOndragleave
Sets theondragleave
event handler for this element.- Parameters:
ondragleave
- theondragleave
event handler for this element
-
getOndragover
public org.htmlunit.corejs.javascript.Function getOndragover()Returns theondragover
event handler for this element.- Returns:
- the
ondragover
event handler for this element
-
setOndragover
Sets theondragover
event handler for this element.- Parameters:
ondragover
- theondragover
event handler for this element
-
getOndragstart
public org.htmlunit.corejs.javascript.Function getOndragstart()Returns theondragstart
event handler for this element.- Returns:
- the
ondragstart
event handler for this element
-
setOndragstart
Sets theondragstart
event handler for this element.- Parameters:
ondragstart
- theondragstart
event handler for this element
-
getOndrop
public org.htmlunit.corejs.javascript.Function getOndrop()Returns theondrop
event handler for this element.- Returns:
- the
ondrop
event handler for this element
-
setOndrop
Sets theondrop
event handler for this element.- Parameters:
ondrop
- theondrop
event handler for this element
-
getOndurationchange
public org.htmlunit.corejs.javascript.Function getOndurationchange()Returns theondurationchange
event handler for this element.- Returns:
- the
ondurationchange
event handler for this element
-
setOndurationchange
Sets theondurationchange
event handler for this element.- Parameters:
ondurationchange
- theondurationchange
event handler for this element
-
getOnemptied
public org.htmlunit.corejs.javascript.Function getOnemptied()Returns theonemptied
event handler for this element.- Returns:
- the
onemptied
event handler for this element
-
setOnemptied
Sets theonemptied
event handler for this element.- Parameters:
onemptied
- theonemptied
event handler for this element
-
getOnended
public org.htmlunit.corejs.javascript.Function getOnended()Returns theonended
event handler for this element.- Returns:
- the
onended
event handler for this element
-
setOnended
Sets theonended
event handler for this element.- Parameters:
onended
- theonended
event handler for this element
-
getOngotpointercapture
public org.htmlunit.corejs.javascript.Function getOngotpointercapture()Returns theongotpointercapture
event handler for this element.- Returns:
- the
ongotpointercapture
event handler for this element
-
setOngotpointercapture
Sets theongotpointercapture
event handler for this element.- Parameters:
ongotpointercapture
- theongotpointercapture
event handler for this element
-
getOninvalid
public org.htmlunit.corejs.javascript.Function getOninvalid()Returns theoninvalid
event handler for this element.- Returns:
- the
oninvalid
event handler for this element
-
setOninvalid
Sets theoninvalid
event handler for this element.- Parameters:
oninvalid
- theoninvalid
event handler for this element
-
getOnload
Returns theonload
event handler for this element.- Returns:
- the
onload
event handler for this element
-
setOnload
Sets theonload
event handler for this element.- Parameters:
onload
- theonload
event handler for this element
-
getOnloadeddata
public org.htmlunit.corejs.javascript.Function getOnloadeddata()Returns theonloadeddata
event handler for this element.- Returns:
- the
onloadeddata
event handler for this element
-
setOnloadeddata
Sets theonloadeddata
event handler for this element.- Parameters:
onloadeddata
- theonloadeddata
event handler for this element
-
getOnloadedmetadata
public org.htmlunit.corejs.javascript.Function getOnloadedmetadata()Returns theonloadedmetadata
event handler for this element.- Returns:
- the
onloadedmetadata
event handler for this element
-
setOnloadedmetadata
Sets theonloadedmetadata
event handler for this element.- Parameters:
onloadedmetadata
- theonloadedmetadata
event handler for this element
-
getOnloadstart
public org.htmlunit.corejs.javascript.Function getOnloadstart()Returns theonloadstart
event handler for this element.- Returns:
- the
onloadstart
event handler for this element
-
setOnloadstart
Sets theonloadstart
event handler for this element.- Parameters:
onloadstart
- theonloadstart
event handler for this element
-
getOnlostpointercapture
public org.htmlunit.corejs.javascript.Function getOnlostpointercapture()Returns theonlostpointercapture
event handler for this element.- Returns:
- the
onlostpointercapture
event handler for this element
-
setOnlostpointercapture
Sets theonlostpointercapture
event handler for this element.- Parameters:
onlostpointercapture
- theonlostpointercapture
event handler for this element
-
getOnmouseenter
public org.htmlunit.corejs.javascript.Function getOnmouseenter()Returns theonmouseenter
event handler for this element.- Returns:
- the
onmouseenter
event handler for this element
-
setOnmouseenter
Sets theonmouseenter
event handler for this element.- Parameters:
onmouseenter
- theonmouseenter
event handler for this element
-
getOnmouseleave
public org.htmlunit.corejs.javascript.Function getOnmouseleave()Returns theonmouseleave
event handler for this element.- Returns:
- the
onmouseleave
event handler for this element
-
setOnmouseleave
Sets theonmouseleave
event handler for this element.- Parameters:
onmouseleave
- theonmouseleave
event handler for this element
-
getOnmousewheel
public org.htmlunit.corejs.javascript.Function getOnmousewheel()Returns theonmousewheel
event handler for this element.- Returns:
- the
onmousewheel
event handler for this element
-
setOnmousewheel
Sets theonmousewheel
event handler for this element.- Parameters:
onmousewheel
- theonmousewheel
event handler for this element
-
getOnpause
public org.htmlunit.corejs.javascript.Function getOnpause()Returns theonpause
event handler for this element.- Returns:
- the
onpause
event handler for this element
-
setOnpause
Sets theonpause
event handler for this element.- Parameters:
onpause
- theonpause
event handler for this element
-
getOnplay
public org.htmlunit.corejs.javascript.Function getOnplay()Returns theonplay
event handler for this element.- Returns:
- the
onplay
event handler for this element
-
setOnplay
Sets theonplay
event handler for this element.- Parameters:
onplay
- theonplay
event handler for this element
-
getOnplaying
public org.htmlunit.corejs.javascript.Function getOnplaying()Returns theonplaying
event handler for this element.- Returns:
- the
onplaying
event handler for this element
-
setOnplaying
Sets theonplaying
event handler for this element.- Parameters:
onplaying
- theonplaying
event handler for this element
-
getOnpointercancel
public org.htmlunit.corejs.javascript.Function getOnpointercancel()Returns theonpointercancel
event handler for this element.- Returns:
- the
onpointercancel
event handler for this element
-
setOnpointercancel
Sets theonpointercancel
event handler for this element.- Parameters:
onpointercancel
- theonpointercancel
event handler for this element
-
getOnpointerdown
public org.htmlunit.corejs.javascript.Function getOnpointerdown()Returns theonpointerdown
event handler for this element.- Returns:
- the
onpointerdown
event handler for this element
-
setOnpointerdown
Sets theonpointerdown
event handler for this element.- Parameters:
onpointerdown
- theonpointerdown
event handler for this element
-
getOnpointerenter
public org.htmlunit.corejs.javascript.Function getOnpointerenter()Returns theonpointerenter
event handler for this element.- Returns:
- the
onpointerenter
event handler for this element
-
setOnpointerenter
Sets theonpointerenter
event handler for this element.- Parameters:
onpointerenter
- theonpointerenter
event handler for this element
-
getOnpointerleave
public org.htmlunit.corejs.javascript.Function getOnpointerleave()Returns theonpointerleave
event handler for this element.- Returns:
- the
onpointerleave
event handler for this element
-
setOnpointerleave
Sets theonpointerleave
event handler for this element.- Parameters:
onpointerleave
- theonpointerleave
event handler for this element
-
getOnpointermove
public org.htmlunit.corejs.javascript.Function getOnpointermove()Returns theonpointermove
event handler for this element.- Returns:
- the
onpointermove
event handler for this element
-
setOnpointermove
Sets theonpointermove
event handler for this element.- Parameters:
onpointermove
- theonpointermove
event handler for this element
-
getOnpointerout
public org.htmlunit.corejs.javascript.Function getOnpointerout()Returns theonpointerout
event handler for this element.- Returns:
- the
onpointerout
event handler for this element
-
setOnpointerout
Sets theonpointerout
event handler for this element.- Parameters:
onpointerout
- theonpointerout
event handler for this element
-
getOnpointerover
public org.htmlunit.corejs.javascript.Function getOnpointerover()Returns theonpointerover
event handler for this element.- Returns:
- the
onpointerover
event handler for this element
-
setOnpointerover
Sets theonpointerover
event handler for this element.- Parameters:
onpointerover
- theonpointerover
event handler for this element
-
getOnpointerup
public org.htmlunit.corejs.javascript.Function getOnpointerup()Returns theonpointerup
event handler for this element.- Returns:
- the
onpointerup
event handler for this element
-
setOnpointerup
Sets theonpointerup
event handler for this element.- Parameters:
onpointerup
- theonpointerup
event handler for this element
-
getOnprogress
public org.htmlunit.corejs.javascript.Function getOnprogress()Returns theonprogress
event handler for this element.- Returns:
- the
onprogress
event handler for this element
-
setOnprogress
Sets theonprogress
event handler for this element.- Parameters:
onprogress
- theonprogress
event handler for this element
-
getOnratechange
public org.htmlunit.corejs.javascript.Function getOnratechange()Returns theonratechange
event handler for this element.- Returns:
- the
onratechange
event handler for this element
-
setOnratechange
Sets theonratechange
event handler for this element.- Parameters:
onratechange
- theonratechange
event handler for this element
-
getOnreset
public org.htmlunit.corejs.javascript.Function getOnreset()Returns theonreset
event handler for this element.- Returns:
- the
onreset
event handler for this element
-
setOnreset
Sets theonreset
event handler for this element.- Parameters:
onreset
- theonreset
event handler for this element
-
getOnscroll
public org.htmlunit.corejs.javascript.Function getOnscroll()Returns theonscroll
event handler for this element.- Returns:
- the
onscroll
event handler for this element
-
setOnscroll
Sets theonscroll
event handler for this element.- Parameters:
onscroll
- theonscroll
event handler for this element
-
getOnscrollend
public org.htmlunit.corejs.javascript.Function getOnscrollend()Returns theonscrollend
event handler for this element.- Returns:
- the
onscrollend
event handler for this element
-
setOnscrollend
Sets theonscrollend
event handler for this element.- Parameters:
onscrollend
- theonscrollend
event handler for this element
-
getOnseeked
public org.htmlunit.corejs.javascript.Function getOnseeked()Returns theonseeked
event handler for this element.- Returns:
- the
onseeked
event handler for this element
-
setOnseeked
Sets theonseeked
event handler for this element.- Parameters:
onseeked
- theonseeked
event handler for this element
-
getOnseeking
public org.htmlunit.corejs.javascript.Function getOnseeking()Returns theonseeking
event handler for this element.- Returns:
- the
onseeking
event handler for this element
-
setOnseeking
Sets theonseeking
event handler for this element.- Parameters:
onseeking
- theonseeking
event handler for this element
-
getOnselect
public org.htmlunit.corejs.javascript.Function getOnselect()Returns theonselect
event handler for this element.- Returns:
- the
onselect
event handler for this element
-
setOnselect
Sets theonselect
event handler for this element.- Parameters:
onselect
- theonselect
event handler for this element
-
getOnstalled
public org.htmlunit.corejs.javascript.Function getOnstalled()Returns theonstalled
event handler for this element.- Returns:
- the
onstalled
event handler for this element
-
setOnstalled
Sets theonstalled
event handler for this element.- Parameters:
onstalled
- theonstalled
event handler for this element
-
getOnsuspend
public org.htmlunit.corejs.javascript.Function getOnsuspend()Returns theonsuspend
event handler for this element.- Returns:
- the
onsuspend
event handler for this element
-
setOnsuspend
Sets theonsuspend
event handler for this element.- Parameters:
onsuspend
- theonsuspend
event handler for this element
-
getOntimeupdate
public org.htmlunit.corejs.javascript.Function getOntimeupdate()Returns theontimeupdate
event handler for this element.- Returns:
- the
ontimeupdate
event handler for this element
-
setOntimeupdate
Sets theontimeupdate
event handler for this element.- Parameters:
ontimeupdate
- theontimeupdate
event handler for this element
-
getOntoggle
public org.htmlunit.corejs.javascript.Function getOntoggle()Returns theontoggle
event handler for this element.- Returns:
- the
ontoggle
event handler for this element
-
setOntoggle
Sets theontoggle
event handler for this element.- Parameters:
ontoggle
- theontoggle
event handler for this element
-
getOnvolumechange
public org.htmlunit.corejs.javascript.Function getOnvolumechange()Returns theonvolumechange
event handler for this element.- Returns:
- the
onvolumechange
event handler for this element
-
setOnvolumechange
Sets theonvolumechange
event handler for this element.- Parameters:
onvolumechange
- theonvolumechange
event handler for this element
-
getOnwaiting
public org.htmlunit.corejs.javascript.Function getOnwaiting()Returns theonwaiting
event handler for this element.- Returns:
- the
onwaiting
event handler for this element
-
setOnwaiting
Sets theonwaiting
event handler for this element.- Parameters:
onwaiting
- theonwaiting
event handler for this element
-
getOncopy
public org.htmlunit.corejs.javascript.Function getOncopy()Returns theoncopy
event handler for this element.- Returns:
- the
oncopy
event handler for this element
-
setOncopy
Sets theoncopy
event handler for this element.- Parameters:
oncopy
- theoncopy
event handler for this element
-
getOncut
public org.htmlunit.corejs.javascript.Function getOncut()Returns theoncut
event handler for this element.- Returns:
- the
oncut
event handler for this element
-
setOncut
Sets theoncut
event handler for this element.- Parameters:
oncut
- theoncut
event handler for this element
-
getOnpaste
public org.htmlunit.corejs.javascript.Function getOnpaste()Returns theonpaste
event handler for this element.- Returns:
- the
onpaste
event handler for this element
-
setOnpaste
Sets theonpaste
event handler for this element.- Parameters:
onpaste
- theonpaste
event handler for this element
-
getOnmozfullscreenchange
public org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()Returns theonmozfullscreenchange
event handler for this element.- Returns:
- the
onmozfullscreenchange
event handler for this element
-
setOnmozfullscreenchange
Sets theonmozfullscreenchange
event handler for this element.- Parameters:
onmozfullscreenchange
- theonmozfullscreenchange
event handler for this element
-
getOnmozfullscreenerror
public org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()Returns theonmozfullscreenerror
event handler for this element.- Returns:
- the
onmozfullscreenerror
event handler for this element
-
setOnmozfullscreenerror
Sets theonmozfullscreenerror
event handler for this element.- Parameters:
onmozfullscreenerror
- theonmozfullscreenerror
event handler for this element
-
getOnselectstart
public org.htmlunit.corejs.javascript.Function getOnselectstart()Returns theonselectstart
event handler for this element.- Returns:
- the
onselectstart
event handler for this element
-
setOnselectstart
Sets theonselectstart
event handler for this element.- Parameters:
onselectstart
- theonselectstart
event handler for this element
-
getName
Returns the value of the JavaScript attributename
.- Returns:
- the value of this attribute
-
setName
Sets the value of the JavaScript attributename
.- Parameters:
newName
- the new name
-
getValue
Returns the value of the JavaScript attributevalue
.- Returns:
- the value of this attribute
-
setValue
Sets the value of the JavaScript attributevalue
.- Parameters:
newValue
- the new value
-
getEnterKeyHint
Returns the value of the JavaScript attributeenterKeyHint
.- Returns:
- the value of this attribute
-
setEnterKeyHint
Sets the value of the JavaScript attributeenterKeyHint
.- Parameters:
enterKeyHint
- the new value
-
getOnanimationcancel
public org.htmlunit.corejs.javascript.Function getOnanimationcancel()Returns theonanimationcancel
event handler.- Returns:
- the
onanimationcancel
event handler
-
setOnanimationcancel
Sets theonanimationcancel
event handler.- Parameters:
onanimationcancel
- theonanimationcancel
event handler
-
getOnanimationend
public org.htmlunit.corejs.javascript.Function getOnanimationend()Returns theonanimationend
event handler.- Returns:
- the
onanimationend
event handler
-
setOnanimationend
Sets theonanimationend
event handler.- Parameters:
onanimationend
- theonanimationend
event handler
-
getOnanimationiteration
public org.htmlunit.corejs.javascript.Function getOnanimationiteration()Returns theonanimationiteration
event handler.- Returns:
- the
onanimationiteration
event handler
-
setOnanimationiteration
Sets theonanimationiteration
event handler.- Parameters:
onanimationiteration
- theonanimationiteration
event handler
-
getOnanimationstart
public org.htmlunit.corejs.javascript.Function getOnanimationstart()Returns theonanimationstart
event handler.- Returns:
- the
onanimationstart
event handler
-
setOnanimationstart
Sets theonanimationstart
event handler.- Parameters:
onanimationstart
- theonanimationstart
event handler
-
getOnselectionchange
public org.htmlunit.corejs.javascript.Function getOnselectionchange()Returns theonselectionchange
event handler for this element.- Returns:
- the
onselectionchange
event handler for this element
-
setOnselectionchange
Sets theonselectionchange
event handler for this element.- Parameters:
onselectionchange
- theonselectionchange
event handler for this element
-
getOntransitioncancel
public org.htmlunit.corejs.javascript.Function getOntransitioncancel()Returns theontransitioncancel
event handler for this element.- Returns:
- the
ontransitioncancel
event handler for this element
-
setOntransitioncancel
Sets theontransitioncancel
event handler for this element.- Parameters:
ontransitioncancel
- theontransitioncancel
event handler for this element
-
getOntransitionend
public org.htmlunit.corejs.javascript.Function getOntransitionend()Returns theontransitionend
event handler for this element.- Returns:
- the
ontransitionend
event handler for this element
-
setOntransitionend
Sets theontransitionend
event handler for this element.- Parameters:
ontransitionend
- theontransitionend
event handler for this element
-
getOntransitionrun
public org.htmlunit.corejs.javascript.Function getOntransitionrun()Returns theontransitionrun
event handler for this element.- Returns:
- the
ontransitionrun
event handler for this element
-
setOntransitionrun
Sets theontransitionrun
event handler for this element.- Parameters:
ontransitionrun
- theontransitionrun
event handler for this element
-
getOntransitionstart
public org.htmlunit.corejs.javascript.Function getOntransitionstart()Returns theontransitionstart
event handler for this element.- Returns:
- the
ontransitionstart
event handler for this element
-
setOntransitionstart
Sets theontransitionstart
event handler for this element.- Parameters:
ontransitionstart
- theontransitionstart
event handler for this element
-