public class Document extends Node
Document
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
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
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
Document() |
Modifier and Type | Method and Description |
---|---|
Object |
adoptNode(Node externalNode)
Adopts a node from an external document.
|
void |
captureEvents(String type)
Does nothing special anymore.
|
void |
clear()
Does... nothing.
|
void |
close()
JavaScript function
close . |
boolean |
contains(Object element)
Checks whether the given element is contained within this object.
|
Attr |
createAttribute(String attributeName)
Creates a new HTML attribute with the specified name.
|
Object |
createCDATASection(String data)
Creates a new createCDATASection.
|
Object |
createComment(String comment)
Creates a new Comment.
|
Object |
createDocumentFragment()
Creates a new document fragment.
|
Object |
createElement(String tagName)
Creates a new element with the given tag name.
|
Object |
createElementNS(String namespaceURI,
String qualifiedName)
Creates a new HTML element with the given tag name, and name.
|
Event |
createEvent(String eventType)
Implementation of the
DocumentEvent interface's
DocumentEvent.createEvent(String) method. |
NodeIterator |
createNodeIterator(Node root,
int whatToShow,
org.htmlunit.corejs.javascript.Scriptable filter)
Returns a new NodeIterator object.
|
XPathNSResolver |
createNSResolver(Node nodeResolver)
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily
evaluated relative to the context of the node where it appeared within the document.
|
Object |
createProcessingInstruction(String target,
String data)
Creates a new ProcessingInstruction.
|
Range |
createRange()
Creates and returns a new range.
|
Object |
createTextNode(String newData)
Create a new DOM text node with the given data.
|
Object |
createTreeWalker(Node root,
double whatToShow,
org.htmlunit.corejs.javascript.Scriptable filter,
boolean expandEntityReferences)
Creates and returns a new TreeWalker.
|
Object |
elementFromPoint(int x,
int y)
Returns the element for the specified x coordinate and the specified y coordinate.
|
XPathResult |
evaluate(String expression,
Node contextNode,
Object resolver,
int type,
Object result)
Evaluates an XPath expression string and returns a result of the specified type if possible.
|
boolean |
execCommand(String cmd,
boolean userInterface,
Object value)
Executes a command.
|
void |
forceDocumentMode(int documentMode)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
String |
generateBlobUrl(Blob blob)
Generate and return the URL for the given blob.
|
Object |
getActiveElement()
Returns the value of the
activeElement property. |
String |
getAlinkColor()
Returns the value of the
alinkColor property. |
HTMLCollection |
getAll()
Returns the value of the
all property. |
HTMLCollection |
getAnchors()
Returns the value of the JavaScript property
anchors . |
HTMLCollection |
getApplets()
Returns the value of the JavaScript property
applets . |
String |
getBgColor()
Returns the value of the
bgColor property. |
HTMLElement |
getBody()
Returns this document's
body element. |
String |
getCharacterSet()
Returns the character encoding of the current document.
|
String |
getCharset()
Retrieves the character set used to encode the document.
|
int |
getChildElementCount()
Returns the current number of child elements.
|
HTMLCollection |
getChildren()
Gets the children of the current node.
|
String |
getCompatMode()
Returns the
compatMode property. |
String |
getContentType()
Returns the
contentType property. |
String |
getCookie()
Returns the
cookie property. |
org.htmlunit.corejs.javascript.ScriptableObject |
getCurrentScript() |
Object |
getDefaultView()
Gets the window in which this document is contained.
|
String |
getDesignMode()
Returns a value which indicates whether or not the document can be edited.
|
HtmlUnitScriptable |
getDoctype()
Gets the JavaScript property
doctype for the document. |
Element |
getDocumentElement()
Gets the JavaScript property
documentElement for the document. |
int |
getDocumentMode()
Returns the
documentMode property. |
String |
getDocumentURI()
Returns the value of the
documentURI property. |
String |
getDomain()
Returns the domain name of the server that served the document, or
null if the server
cannot be identified by a domain name. |
HtmlUnitScriptable |
getElementById(String id)
Returns the element with the specified ID, as long as it is an HTML element;
null otherwise. |
HTMLCollection |
getElementsByClassName(String className)
Returns all the descendant elements with the specified class name.
|
NodeList |
getElementsByName(String elementName)
Returns all HTML elements that have a
name attribute with the specified value. |
HTMLCollection |
getElementsByTagName(String tagName)
Returns all the descendant elements with the specified tag name.
|
Object |
getElementsByTagNameNS(Object namespaceURI,
String localName)
Returns a list of elements with the given tag name belonging to the given namespace.
|
HTMLCollection |
getEmbeds()
Returns the value of the
embeds property. |
String |
getFgColor()
Returns the value of the
fgColor property. |
Element |
getFirstElementChild()
Returns the first element child.
|
org.htmlunit.corejs.javascript.ScriptableObject |
getFonts() |
HTMLCollection |
getForms()
Returns the value of the
forms property. |
Object |
getHead()
Returns this document's
head element. |
boolean |
getHidden()
Returns the
hidden property. |
HTMLCollection |
getImages()
Returns the value of the
embeds property. |
DOMImplementation |
getImplementation()
Returns the implementation object of the current document.
|
String |
getInputEncoding()
Returns a string representing the encoding under which the document was parsed.
|
Element |
getLastElementChild()
Returns the last element child.
|
String |
getLastModified()
Returns the last modification date of the document.
|
String |
getLinkColor()
Returns the value of the
linkColor property. |
HTMLCollection |
getLinks()
Returns the value of the JavaScript property
links . |
Location |
getLocation()
Returns the value of the
location property. |
org.htmlunit.corejs.javascript.Function |
getOnabort()
Returns the
onabort event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnafterscriptexecute()
Returns the
onafterscriptexecute event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnauxclick()
Returns the
onauxclick event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnbeforecopy()
Returns the
onbeforecopy event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnbeforecut()
Returns the
onbeforecut event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnbeforepaste()
Returns the
onbeforepaste event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnbeforescriptexecute()
Returns the
onbeforescriptexecute event handler for this element. |
org.htmlunit.corejs.javascript.Function |
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. |
org.htmlunit.corejs.javascript.Function |
getOnclick()
Returns the
onclick event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnclose()
Returns the
onclose event handler for this element. |
org.htmlunit.corejs.javascript.Function |
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. |
org.htmlunit.corejs.javascript.Function |
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. |
org.htmlunit.corejs.javascript.Function |
getOnerror()
Returns the
onerror event handler for this element. |
org.htmlunit.corejs.javascript.Function |
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. |
org.htmlunit.corejs.javascript.Function |
getOnkeydown()
Returns the
onkeydown event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnkeypress()
Returns the
onkeypress event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnkeyup()
Returns the
onkeyup event handler for this element. |
org.htmlunit.corejs.javascript.Function |
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. |
org.htmlunit.corejs.javascript.Function |
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. |
org.htmlunit.corejs.javascript.Function |
getOnmousemove()
Returns the
onmousemove event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnmouseout()
Returns the
onmouseout event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnmouseover()
Returns the
onmouseover event handler for this element. |
org.htmlunit.corejs.javascript.Function |
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 |
getOnpointerlockchange()
Returns the
onpointerlockchange event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnpointerlockerror()
Returns the
onpointerlockerror 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 |
getOnreadystatechange()
Returns the
onreadystatechange 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 |
getOnsearch()
Returns the
onsearch 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. |
org.htmlunit.corejs.javascript.Function |
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 |
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 |
getOnwebkitfullscreenchange()
Returns the
onwebkitfullscreenchange event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnwebkitfullscreenerror()
Returns the
onwebkitfullscreenerror event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnwheel()
Returns the
onwheel event handler for this element. |
SgmlPage |
getPage()
Returns the page that this document is modeling.
|
HTMLCollection |
getPlugins()
Returns the value of the
plugins property. |
String |
getReadyState()
Returns the ready state of the document.
|
String |
getReferrer()
Returns the value of the
referrer property. |
Element |
getRootElement()
Gets the JavaScript property
rootElement . |
HTMLCollection |
getScripts()
Returns the value of the
scripts property. |
Selection |
getSelection()
Returns the current selection.
|
StyleSheetList |
getStyleSheets()
Retrieves a collection of stylesheet objects representing the style sheets that correspond
to each instance of a Link or
CSSStyleDeclaration object in the document. |
String |
getTitle()
Returns this document's title.
|
String |
getURL_js()
Returns the value of the
URL property. |
String |
getVlinkColor()
Returns the value of the
vlinkColor property. |
String |
getXmlEncoding()
Returns the
xmlEncoding property. |
String |
getXmlVersion()
Returns the
xmlVersion property. |
boolean |
hasFocus()
Returns
false if the active element in the document has no focus;
true if the active element in the document has focus. |
HtmlUnitScriptable |
importNode(Node importedNode,
boolean deep)
Imports a node from another document to this document.
|
boolean |
isXmlStandalone()
Returns the
xmlStandalone property. |
void |
jsConstructor()
JavaScript constructor.
|
boolean |
queryCommandEnabled(String cmd)
Indicates if the command can be successfully executed using
execCommand , given
the current state of the document. |
boolean |
queryCommandSupported(String cmd)
Indicates if the command is supported.
|
Node |
querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
NodeList |
querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
void |
releaseCapture()
Mock for the moment.
|
void |
releaseEvents(String type)
Does nothing special anymore.
|
Blob |
resolveBlobUrl(String url) |
void |
revokeBlobUrl(String url)
Revokes the URL for the given blob.
|
void |
setAlinkColor(String color)
Sets the value of the
alinkColor property. |
void |
setBgColor(String color)
Sets the value of the
bgColor property. |
void |
setBody(HTMLElement htmlElement)
Sets the
body element of the document. |
void |
setCookie(String newCookie)
Adds a cookie, as long as cookies are enabled.
|
void |
setCurrentScript(org.htmlunit.corejs.javascript.ScriptableObject script) |
void |
setDesignMode(String mode)
Sets a value which indicates whether or not the document can be edited.
|
void |
setDomain(String newDomain)
Sets the domain of this document.
|
void |
setFgColor(String color)
Sets the value of the
fgColor property. |
void |
setLinkColor(String color)
Sets the value of the
linkColor property. |
void |
setLocation(String location)
Sets the value of the
location property. |
void |
setOnabort(Object onabort)
Sets the
onabort event handler for this element. |
void |
setOnafterscriptexecute(Object onafterscriptexecute)
Sets the
onafterscriptexecute event handler for this element. |
void |
setOnauxclick(Object onauxclick)
Sets the
onauxclick event handler for this element. |
void |
setOnbeforecopy(Object onbeforecopy)
Sets the
onbeforecopy event handler for this element. |
void |
setOnbeforecut(Object onbeforecut)
Sets the
onbeforecut event handler for this element. |
void |
setOnbeforepaste(Object onbeforepaste)
Sets the
onbeforepaste event handler for this element. |
void |
setOnbeforescriptexecute(Object onbeforescriptexecute)
Sets the
onbeforescriptexecute event handler for this element. |
void |
setOnblur(Object handler)
Sets the
onblur event handler for this element. |
void |
setOncancel(Object oncancel)
Sets the
oncancel event handler for this element. |
void |
setOncanplay(Object oncanplay)
Sets the
oncanplay event handler for this element. |
void |
setOncanplaythrough(Object oncanplaythrough)
Sets the
oncanplaythrough event handler for this element. |
void |
setOnchange(Object onchange)
Sets the
onchange event handler for this element. |
void |
setOnclick(Object handler)
Sets the
onclick event handler for this element. |
void |
setOnclose(Object onclose)
Sets the
onclose event handler for this element. |
void |
setOncontextmenu(Object handler)
Sets the
oncontextmenu event handler for this element. |
void |
setOncopy(Object oncopy)
Sets the
oncopy event handler for this element. |
void |
setOncuechange(Object oncuechange)
Sets the
oncuechange event handler for this element. |
void |
setOncut(Object oncut)
Sets the
oncut event handler for this element. |
void |
setOndblclick(Object handler)
Sets the
ondblclick event handler for this element. |
void |
setOndrag(Object ondrag)
Sets the
ondrag event handler for this element. |
void |
setOndragend(Object ondragend)
Sets the
ondragend event handler for this element. |
void |
setOndragenter(Object ondragenter)
Sets the
ondragenter event handler for this element. |
void |
setOndragleave(Object ondragleave)
Sets the
ondragleave event handler for this element. |
void |
setOndragover(Object ondragover)
Sets the
ondragover event handler for this element. |
void |
setOndragstart(Object ondragstart)
Sets the
ondragstart event handler for this element. |
void |
setOndrop(Object ondrop)
Sets the
ondrop event handler for this element. |
void |
setOndurationchange(Object ondurationchange)
Sets the
ondurationchange event handler for this element. |
void |
setOnemptied(Object onemptied)
Sets the
onemptied event handler for this element. |
void |
setOnended(Object onended)
Sets the
onended event handler for this element. |
void |
setOnerror(Object handler)
Sets the
onerror event handler for this element. |
void |
setOnfocus(Object handler)
Sets the
onfocus event handler for this element. |
void |
setOngotpointercapture(Object ongotpointercapture)
Sets the
ongotpointercapture event handler for this element. |
void |
setOninput(Object oninput)
Sets the
oninput event handler for this element. |
void |
setOninvalid(Object oninvalid)
Sets the
oninvalid event handler for this element. |
void |
setOnkeydown(Object handler)
Sets the
onkeydown event handler for this element. |
void |
setOnkeypress(Object handler)
Sets the
onkeypress event handler for this element. |
void |
setOnkeyup(Object handler)
Sets the
onkeyup event handler for this element. |
void |
setOnload(Object onload)
Sets the
onload event handler for this element. |
void |
setOnloadeddata(Object onloadeddata)
Sets the
onloadeddata event handler for this element. |
void |
setOnloadedmetadata(Object onloadedmetadata)
Sets the
onloadedmetadata event handler for this element. |
void |
setOnloadstart(Object onloadstart)
Sets the
onloadstart event handler for this element. |
void |
setOnlostpointercapture(Object onlostpointercapture)
Sets the
onlostpointercapture event handler for this element. |
void |
setOnmousedown(Object handler)
Sets the
onmousedown event handler for this element. |
void |
setOnmouseenter(Object onmouseenter)
Sets the
onmouseenter event handler for this element. |
void |
setOnmouseleave(Object onmouseleave)
Sets the
onmouseleave event handler for this element. |
void |
setOnmousemove(Object handler)
Sets the
onmousemove event handler for this element. |
void |
setOnmouseout(Object handler)
Sets the
onmouseout event handler for this element. |
void |
setOnmouseover(Object handler)
Sets the
onmouseover event handler for this element. |
void |
setOnmouseup(Object handler)
Sets the
onmouseup event handler for this element. |
void |
setOnmousewheel(Object onmousewheel)
Sets the
onmousewheel event handler for this element. |
void |
setOnmozfullscreenchange(Object onmozfullscreenchange)
Sets the
onmozfullscreenchange event handler for this element. |
void |
setOnmozfullscreenerror(Object onmozfullscreenerror)
Sets the
onmozfullscreenerror event handler for this element. |
void |
setOnpaste(Object onpaste)
Sets the
onpaste event handler for this element. |
void |
setOnpause(Object onpause)
Sets the
onpause event handler for this element. |
void |
setOnplay(Object onplay)
Sets the
onplay event handler for this element. |
void |
setOnplaying(Object onplaying)
Sets the
onplaying event handler for this element. |
void |
setOnpointercancel(Object onpointercancel)
Sets the
onpointercancel event handler for this element. |
void |
setOnpointerdown(Object onpointerdown)
Sets the
onpointerdown event handler for this element. |
void |
setOnpointerenter(Object onpointerenter)
Sets the
onpointerenter event handler for this element. |
void |
setOnpointerleave(Object onpointerleave)
Sets the
onpointerleave event handler for this element. |
void |
setOnpointerlockchange(Object onpointerlockchange)
Sets the
onpointerlockchange event handler for this element. |
void |
setOnpointerlockerror(Object onpointerlockerror)
Sets the
onpointerlockerror event handler for this element. |
void |
setOnpointermove(Object onpointermove)
Sets the
onpointermove event handler for this element. |
void |
setOnpointerout(Object onpointerout)
Sets the
onpointerout event handler for this element. |
void |
setOnpointerover(Object onpointerover)
Sets the
onpointerover event handler for this element. |
void |
setOnpointerup(Object onpointerup)
Sets the
onpointerup event handler for this element. |
void |
setOnprogress(Object onprogress)
Sets the
onprogress event handler for this element. |
void |
setOnratechange(Object onratechange)
Sets the
onratechange event handler for this element. |
void |
setOnreadystatechange(Object onreadystatechange)
Sets the
onreadystatechange event handler for this element. |
void |
setOnreset(Object onreset)
Sets the
onreset event handler for this element. |
void |
setOnresize(Object handler)
Sets the
onresize event handler for this element. |
void |
setOnscroll(Object onscroll)
Sets the
onscroll event handler for this element. |
void |
setOnsearch(Object onsearch)
Sets the
onsearch event handler for this element. |
void |
setOnseeked(Object onseeked)
Sets the
onseeked event handler for this element. |
void |
setOnseeking(Object onseeking)
Sets the
onseeking event handler for this element. |
void |
setOnselect(Object onselect)
Sets the
onselect event handler for this element. |
void |
setOnselectionchange(Object onselectionchange)
Sets the
onselectionchange event handler for this element. |
void |
setOnselectstart(Object onselectstart)
Sets the
onselectstart event handler for this element. |
void |
setOnstalled(Object onstalled)
Sets the
onstalled event handler for this element. |
void |
setOnsubmit(Object onsubmit)
Sets the
onsubmit event handler for this element. |
void |
setOnsuspend(Object onsuspend)
Sets the
onsuspend event handler for this element. |
void |
setOntimeupdate(Object ontimeupdate)
Sets the
ontimeupdate event handler for this element. |
void |
setOntoggle(Object ontoggle)
Sets the
ontoggle event handler for this element. |
void |
setOnvolumechange(Object onvolumechange)
Sets the
onvolumechange event handler for this element. |
void |
setOnwaiting(Object onwaiting)
Sets the
onwaiting event handler for this element. |
void |
setOnwebkitfullscreenchange(Object onwebkitfullscreenchange)
Sets the
onwebkitfullscreenchange event handler for this element. |
void |
setOnwebkitfullscreenerror(Object onwebkitfullscreenerror)
Sets the
onwebkitfullscreenerror event handler for this element. |
void |
setOnwheel(Object onwheel)
Sets the
onwheel event handler for this element. |
void |
setTitle(String title)
Sets this document's title.
|
void |
setVlinkColor(String color)
Sets the value of the
vlinkColor property. |
void |
setWindow(Window window)
Sets the Window JavaScript object that encloses this document.
|
after, append, appendChild, before, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRootNode, getTextContent, hasAttributes, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, lookupPrefix, normalize, prepend, remove, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue, setTextContent
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, 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
public void jsConstructor()
jsConstructor
in class Node
public void setWindow(Window window)
window
- the Window JavaScript object that encloses this documentpublic Location getLocation()
location
property.location
propertypublic void setLocation(String location) throws IOException
location
property. The location's default property is "href",
so setting "document.location='http://www.sf.net'" is equivalent to setting
"document.location.href='http://www.sf.net'".location
- the location to navigate toIOException
- when location loading failspublic String getReferrer()
referrer
property.referrer
propertypublic Element getDocumentElement()
documentElement
for the document.public Element getRootElement()
rootElement
.public HtmlUnitScriptable getDoctype()
doctype
for the document.public String getDesignMode()
public void setDesignMode(String mode)
mode
- a value which indicates whether or not the document can be editedpublic SgmlPage getPage()
public Object getDefaultView()
public Object createDocumentFragment()
public Attr createAttribute(String attributeName)
attributeName
- the name of the attribute to createpublic HtmlUnitScriptable importNode(Node importedNode, boolean deep)
importedNode
- the node to importdeep
- Whether to recursively import the subtree under the specified node; or notpublic Object adoptNode(Node externalNode)
externalNode
- the node from another document to be adoptedpublic DOMImplementation getImplementation()
public XPathNSResolver createNSResolver(Node nodeResolver)
nodeResolver
- the node to be used as a context for namespace resolutionpublic Object createTextNode(String newData)
newData
- the string value for the text nodepublic Object createComment(String comment)
comment
- the comment textpublic XPathResult evaluate(String expression, Node contextNode, Object resolver, int type, Object result)
expression
- the XPath expression string to be parsed and evaluatedcontextNode
- the context node for the evaluation of this XPath expressionresolver
- the resolver permits translation of all prefixes, including the XML namespace prefix,
within the XPath expression into appropriate namespace URIs.type
- If a specific type is specified, then the result will be returned as the corresponding typeresult
- the result object which may be reused and returned by this methodpublic Object createElement(String tagName)
tagName
- the tag namepublic Object createElementNS(String namespaceURI, String qualifiedName)
namespaceURI
- the URI that identifies an XML namespacequalifiedName
- the qualified name of the element type to instantiatepublic HTMLCollection getElementsByTagName(String tagName)
tagName
- the name to search forpublic Object getElementsByTagNameNS(Object namespaceURI, String localName)
namespaceURI
- the namespace URI of elements to look forlocalName
- is either the local name of elements to look for or the special value "*",
which matches all elements.public Object getActiveElement()
activeElement
property.activeElement
propertypublic String getCharacterSet()
public String getCharset()
public HTMLCollection getAnchors()
anchors
.public HTMLCollection getApplets()
applets
.public HTMLElement getBody()
body
element.body
elementpublic void setBody(HTMLElement htmlElement)
body
element of the document.htmlElement
- the new html elementpublic void close() throws IOException
close
.
See http://www.whatwg.org/specs/web-apps/current-work/multipage/section-dynamic.html for a good description of the semantics of open(), write(), writeln() and close().
IOException
- if an IO problem occurspublic String getCompatMode()
compatMode
property.compatMode
propertypublic int getDocumentMode()
documentMode
property.documentMode
propertypublic void forceDocumentMode(int documentMode)
documentMode
- the mode forced by the meta tagpublic Node querySelector(String selectors)
selectors
- the selectorspublic NodeList querySelectorAll(String selectors)
selectors
- the selectorspublic boolean queryCommandSupported(String cmd)
cmd
- the command identifiertrue
if the command is supportedpublic boolean queryCommandEnabled(String cmd)
execCommand
, given
the current state of the document.cmd
- the command identifiertrue
if the command can be successfully executedpublic boolean execCommand(String cmd, boolean userInterface, Object value)
cmd
- the command identifieruserInterface
- display a user interface if the command supports onevalue
- the string, number, or other value to assign (possible values depend on the command)true
if the command was successful, false
otherwisepublic String getURL_js()
URL
property.URL
propertypublic String getDocumentURI()
documentURI
property.documentURI
propertypublic String getCookie()
cookie
property.cookie
propertypublic void setCookie(String newCookie)
newCookie
- in the format "name=value[;expires=date][;domain=domainname][;path=path][;secure]public Event createEvent(String eventType) throws DOMException
DocumentEvent
interface's
DocumentEvent.createEvent(String)
method. The method creates an
uninitialized event of the specified type.eventType
- the event type to createDOMException
- if the event type is not supported (will have a type of
DOMException.NOT_SUPPORTED_ERR)DOMException
public NodeIterator createNodeIterator(Node root, int whatToShow, org.htmlunit.corejs.javascript.Scriptable filter)
root
- The root node at which to begin the NodeIterator's traversal.whatToShow
- an optional long representing a bitmask created by combining
the constant properties of NodeFilter
filter
- an object implementing the NodeFilter
interfacepublic Object createTreeWalker(Node root, double whatToShow, org.htmlunit.corejs.javascript.Scriptable filter, boolean expandEntityReferences) throws DOMException
null
.NodeFilter
for the set of possible Show_ values.NodeFilter
to be used with this TreeWalker, or null
to indicate no filter.false
, the contents of EntityReference nodes are not present
in the logical view.root
- the node which will serve as the root for the TreeWalkerwhatToShow
- specifies which node types may appear in the logical view of the tree presentedfilter
- the NodeFilter to be used with this TreeWalker, or null to indicate no filterexpandEntityReferences
- If false,
the contents of EntityReference nodes are not presented in the logical viewDOMException
- on attempt to create a TreeWalker with a root that is null
DOMException
public Range createRange()
public String getDomain()
null
if the server
cannot be identified by a domain name.public void setDomain(String newDomain)
Domains can only be set to suffixes of the existing domain with the exception of setting the domain to itself.
The domain will be set according to the following rules:
transformation to: com will fail
TODO This code could be modified to understand country domain suffixes. The domain www.bbc.co.uk should be trimmable only down to bbc.co.uk trimming to co.uk should not be possible.
newDomain
- the new domain to setpublic void setOnclick(Object handler)
onclick
event handler for this element.handler
- the onclick
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnclick()
onclick
event handler for this element.onclick
event handler for this elementpublic void setOndblclick(Object handler)
ondblclick
event handler for this element.handler
- the ondblclick
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndblclick()
ondblclick
event handler for this element.ondblclick
event handler for this elementpublic void setOnblur(Object handler)
onblur
event handler for this element.handler
- the onblur
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnblur()
onblur
event handler for this element.onblur
event handler for this elementpublic void setOnfocus(Object handler)
onfocus
event handler for this element.handler
- the onfocus
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnfocus()
onfocus
event handler for this element.onfocus
event handler for this elementpublic void setOnkeydown(Object handler)
onkeydown
event handler for this element.handler
- the onkeydown
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnkeydown()
onkeydown
event handler for this element.onkeydown
event handler for this elementpublic void setOnkeypress(Object handler)
onkeypress
event handler for this element.handler
- the onkeypress
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnkeypress()
onkeypress
event handler for this element.onkeypress
event handler for this elementpublic void setOnkeyup(Object handler)
onkeyup
event handler for this element.handler
- the onkeyup
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnkeyup()
onkeyup
event handler for this element.onkeyup
event handler for this elementpublic void setOnmousedown(Object handler)
onmousedown
event handler for this element.handler
- the onmousedown
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmousedown()
onmousedown
event handler for this element.onmousedown
event handler for this elementpublic void setOnmousemove(Object handler)
onmousemove
event handler for this element.handler
- the onmousemove
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmousemove()
onmousemove
event handler for this element.onmousemove
event handler for this elementpublic void setOnmouseout(Object handler)
onmouseout
event handler for this element.handler
- the onmouseout
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmouseout()
onmouseout
event handler for this element.onmouseout
event handler for this elementpublic void setOnmouseover(Object handler)
onmouseover
event handler for this element.handler
- the onmouseover
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmouseover()
onmouseover
event handler for this element.onmouseover
event handler for this elementpublic void setOnmouseup(Object handler)
onmouseup
event handler for this element.handler
- the onmouseup
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmouseup()
onmouseup
event handler for this element.onmouseup
event handler for this elementpublic void setOncontextmenu(Object handler)
oncontextmenu
event handler for this element.handler
- the oncontextmenu
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncontextmenu()
oncontextmenu
event handler for this element.oncontextmenu
event handler for this elementpublic void setOnresize(Object handler)
onresize
event handler for this element.handler
- the onresize
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnresize()
onresize
event handler for this element.onresize
event handler for this elementpublic void setOnerror(Object handler)
onerror
event handler for this element.handler
- the onerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnerror()
onerror
event handler for this element.onerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOninput()
oninput
event handler for this element.oninput
event handler for this elementpublic void setOninput(Object oninput)
oninput
event handler for this element.oninput
- the oninput
event handler for this elementpublic boolean getHidden()
hidden
property.hidden
propertypublic int getChildElementCount()
getChildElementCount
in class Node
public Object elementFromPoint(int x, int y)
x
- the x offset, in pixelsy
- the y offset, in pixelspublic HTMLCollection getForms()
forms
property.forms
propertypublic HTMLCollection getEmbeds()
embeds
property.embeds
propertypublic HTMLCollection getImages()
embeds
property.embeds
propertypublic HTMLCollection getScripts()
scripts
property.scripts
propertypublic StyleSheetList getStyleSheets()
CSSStyleDeclaration
object in the document.public HTMLCollection getPlugins()
plugins
property.plugins
propertypublic HTMLCollection getLinks()
links
. Refer also to the
MSDN documentation.public HTMLCollection getElementsByClassName(String className)
className
- the name to search forpublic NodeList getElementsByName(String elementName)
name
attribute with the specified value.
Refer to The DOM spec for details.
elementName
- - value of the name
attribute to look forname
attribute with the specified valuepublic boolean hasFocus()
false
if the active element in the document has no focus;
true
if the active element in the document has focus.public String getTitle()
public void setTitle(String title)
title
- the new titlepublic HTMLCollection getChildren()
getChildren
in class Node
public String getContentType()
contentType
property.contentType
propertypublic Selection getSelection()
public Object getHead()
head
element.head
elementpublic String getInputEncoding()
public String getLastModified()
public void releaseCapture()
public String getReadyState()
DomNode.READY_STATE_UNINITIALIZED
,
DomNode.READY_STATE_LOADING
,
DomNode.READY_STATE_LOADED
,
DomNode.READY_STATE_INTERACTIVE
,
DomNode.READY_STATE_COMPLETE
public void captureEvents(String type)
type
- the type of events to captureWindow.captureEvents(String)
public void releaseEvents(String type)
type
- the type of events to captureWindow.releaseEvents(String)
public String getAlinkColor()
alinkColor
property.alinkColor
propertypublic void setAlinkColor(String color)
alinkColor
property.color
- the value of the alinkColor
propertypublic String getBgColor()
bgColor
property.bgColor
propertypublic void setBgColor(String color)
bgColor
property.color
- the value of the bgColor
propertypublic String getFgColor()
fgColor
property.fgColor
propertypublic void setFgColor(String color)
fgColor
property.color
- the value of the fgColor
propertypublic String getLinkColor()
linkColor
property.linkColor
propertypublic void setLinkColor(String color)
linkColor
property.color
- the value of the linkColor
propertypublic String getVlinkColor()
vlinkColor
property.vlinkColor
propertypublic void setVlinkColor(String color)
vlinkColor
property.color
- the value of the vlinkColor
propertypublic Element getLastElementChild()
getLastElementChild
in class Node
public Element getFirstElementChild()
getFirstElementChild
in class Node
public String getXmlEncoding()
xmlEncoding
property.xmlEncoding
propertypublic boolean isXmlStandalone()
xmlStandalone
property.xmlStandalone
propertypublic String getXmlVersion()
xmlVersion
property.xmlVersion
propertypublic org.htmlunit.corejs.javascript.Function getOnabort()
onabort
event handler for this element.onabort
event handler for this elementpublic void setOnabort(Object onabort)
onabort
event handler for this element.onabort
- the onabort
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnauxclick()
onauxclick
event handler for this element.onauxclick
event handler for this elementpublic void setOnauxclick(Object onauxclick)
onauxclick
event handler for this element.onauxclick
- the onauxclick
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnbeforecopy()
onbeforecopy
event handler for this element.onbeforecopy
event handler for this elementpublic void setOnbeforecopy(Object onbeforecopy)
onbeforecopy
event handler for this element.onbeforecopy
- the onbeforecopy
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnbeforecut()
onbeforecut
event handler for this element.onbeforecut
event handler for this elementpublic void setOnbeforecut(Object onbeforecut)
onbeforecut
event handler for this element.onbeforecut
- the onbeforecut
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnbeforepaste()
onbeforepaste
event handler for this element.onbeforepaste
event handler for this elementpublic void setOnbeforepaste(Object onbeforepaste)
onbeforepaste
event handler for this element.onbeforepaste
- the onbeforepaste
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncancel()
oncancel
event handler for this element.oncancel
event handler for this elementpublic void setOncancel(Object oncancel)
oncancel
event handler for this element.oncancel
- the oncancel
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncanplay()
oncanplay
event handler for this element.oncanplay
event handler for this elementpublic void setOncanplay(Object oncanplay)
oncanplay
event handler for this element.oncanplay
- the oncanplay
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncanplaythrough()
oncanplaythrough
event handler for this element.oncanplaythrough
event handler for this elementpublic void setOncanplaythrough(Object oncanplaythrough)
oncanplaythrough
event handler for this element.oncanplaythrough
- the oncanplaythrough
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnchange()
onchange
event handler for this element.onchange
event handler for this elementpublic void setOnchange(Object onchange)
onchange
event handler for this element.onchange
- the onchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnclose()
onclose
event handler for this element.onclose
event handler for this elementpublic void setOnclose(Object onclose)
onclose
event handler for this element.onclose
- the onclose
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncopy()
oncopy
event handler for this element.oncopy
event handler for this elementpublic void setOncopy(Object oncopy)
oncopy
event handler for this element.oncopy
- the oncopy
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncuechange()
oncuechange
event handler for this element.oncuechange
event handler for this elementpublic void setOncuechange(Object oncuechange)
oncuechange
event handler for this element.oncuechange
- the oncuechange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOncut()
oncut
event handler for this element.oncut
event handler for this elementpublic void setOncut(Object oncut)
oncut
event handler for this element.oncut
- the oncut
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndrag()
ondrag
event handler for this element.ondrag
event handler for this elementpublic void setOndrag(Object ondrag)
ondrag
event handler for this element.ondrag
- the ondrag
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndragend()
ondragend
event handler for this element.ondragend
event handler for this elementpublic void setOndragend(Object ondragend)
ondragend
event handler for this element.ondragend
- the ondragend
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndragenter()
ondragenter
event handler for this element.ondragenter
event handler for this elementpublic void setOndragenter(Object ondragenter)
ondragenter
event handler for this element.ondragenter
- the ondragenter
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndragleave()
ondragleave
event handler for this element.ondragleave
event handler for this elementpublic void setOndragleave(Object ondragleave)
ondragleave
event handler for this element.ondragleave
- the ondragleave
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndragover()
ondragover
event handler for this element.ondragover
event handler for this elementpublic void setOndragover(Object ondragover)
ondragover
event handler for this element.ondragover
- the ondragover
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndragstart()
ondragstart
event handler for this element.ondragstart
event handler for this elementpublic void setOndragstart(Object ondragstart)
ondragstart
event handler for this element.ondragstart
- the ondragstart
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndrop()
ondrop
event handler for this element.ondrop
event handler for this elementpublic void setOndrop(Object ondrop)
ondrop
event handler for this element.ondrop
- the ondrop
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOndurationchange()
ondurationchange
event handler for this element.ondurationchange
event handler for this elementpublic void setOndurationchange(Object ondurationchange)
ondurationchange
event handler for this element.ondurationchange
- the ondurationchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnemptied()
onemptied
event handler for this element.onemptied
event handler for this elementpublic void setOnemptied(Object onemptied)
onemptied
event handler for this element.onemptied
- the onemptied
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnended()
onended
event handler for this element.onended
event handler for this elementpublic void setOnended(Object onended)
onended
event handler for this element.onended
- the onended
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOngotpointercapture()
ongotpointercapture
event handler for this element.ongotpointercapture
event handler for this elementpublic void setOngotpointercapture(Object ongotpointercapture)
ongotpointercapture
event handler for this element.ongotpointercapture
- the ongotpointercapture
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOninvalid()
oninvalid
event handler for this element.oninvalid
event handler for this elementpublic void setOninvalid(Object oninvalid)
oninvalid
event handler for this element.oninvalid
- the oninvalid
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnload()
onload
event handler for this element.onload
event handler for this elementpublic void setOnload(Object onload)
onload
event handler for this element.onload
- the onload
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnloadeddata()
onloadeddata
event handler for this element.onloadeddata
event handler for this elementpublic void setOnloadeddata(Object onloadeddata)
onloadeddata
event handler for this element.onloadeddata
- the onloadeddata
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnloadedmetadata()
onloadedmetadata
event handler for this element.onloadedmetadata
event handler for this elementpublic void setOnloadedmetadata(Object onloadedmetadata)
onloadedmetadata
event handler for this element.onloadedmetadata
- the onloadedmetadata
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnloadstart()
onloadstart
event handler for this element.onloadstart
event handler for this elementpublic void setOnloadstart(Object onloadstart)
onloadstart
event handler for this element.onloadstart
- the onloadstart
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnlostpointercapture()
onlostpointercapture
event handler for this element.onlostpointercapture
event handler for this elementpublic void setOnlostpointercapture(Object onlostpointercapture)
onlostpointercapture
event handler for this element.onlostpointercapture
- the onlostpointercapture
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmouseenter()
onmouseenter
event handler for this element.onmouseenter
event handler for this elementpublic void setOnmouseenter(Object onmouseenter)
onmouseenter
event handler for this element.onmouseenter
- the onmouseenter
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmouseleave()
onmouseleave
event handler for this element.onmouseleave
event handler for this elementpublic void setOnmouseleave(Object onmouseleave)
onmouseleave
event handler for this element.onmouseleave
- the onmouseleave
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmousewheel()
onmousewheel
event handler for this element.onmousewheel
event handler for this elementpublic void setOnmousewheel(Object onmousewheel)
onmousewheel
event handler for this element.onmousewheel
- the onmousewheel
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpaste()
onpaste
event handler for this element.onpaste
event handler for this elementpublic void setOnpaste(Object onpaste)
onpaste
event handler for this element.onpaste
- the onpaste
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpause()
onpause
event handler for this element.onpause
event handler for this elementpublic void setOnpause(Object onpause)
onpause
event handler for this element.onpause
- the onpause
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnplay()
onplay
event handler for this element.onplay
event handler for this elementpublic void setOnplay(Object onplay)
onplay
event handler for this element.onplay
- the onplay
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnplaying()
onplaying
event handler for this element.onplaying
event handler for this elementpublic void setOnplaying(Object onplaying)
onplaying
event handler for this element.onplaying
- the onplaying
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointercancel()
onpointercancel
event handler for this element.onpointercancel
event handler for this elementpublic void setOnpointercancel(Object onpointercancel)
onpointercancel
event handler for this element.onpointercancel
- the onpointercancel
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerdown()
onpointerdown
event handler for this element.onpointerdown
event handler for this elementpublic void setOnpointerdown(Object onpointerdown)
onpointerdown
event handler for this element.onpointerdown
- the onpointerdown
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerenter()
onpointerenter
event handler for this element.onpointerenter
event handler for this elementpublic void setOnpointerenter(Object onpointerenter)
onpointerenter
event handler for this element.onpointerenter
- the onpointerenter
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerleave()
onpointerleave
event handler for this element.onpointerleave
event handler for this elementpublic void setOnpointerleave(Object onpointerleave)
onpointerleave
event handler for this element.onpointerleave
- the onpointerleave
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerlockchange()
onpointerlockchange
event handler for this element.onpointerlockchange
event handler for this elementpublic void setOnpointerlockchange(Object onpointerlockchange)
onpointerlockchange
event handler for this element.onpointerlockchange
- the onpointerlockchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerlockerror()
onpointerlockerror
event handler for this element.onpointerlockerror
event handler for this elementpublic void setOnpointerlockerror(Object onpointerlockerror)
onpointerlockerror
event handler for this element.onpointerlockerror
- the onpointerlockerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointermove()
onpointermove
event handler for this element.onpointermove
event handler for this elementpublic void setOnpointermove(Object onpointermove)
onpointermove
event handler for this element.onpointermove
- the onpointermove
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerout()
onpointerout
event handler for this element.onpointerout
event handler for this elementpublic void setOnpointerout(Object onpointerout)
onpointerout
event handler for this element.onpointerout
- the onpointerout
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerover()
onpointerover
event handler for this element.onpointerover
event handler for this elementpublic void setOnpointerover(Object onpointerover)
onpointerover
event handler for this element.onpointerover
- the onpointerover
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpointerup()
onpointerup
event handler for this element.onpointerup
event handler for this elementpublic void setOnpointerup(Object onpointerup)
onpointerup
event handler for this element.onpointerup
- the onpointerup
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnprogress()
onprogress
event handler for this element.onprogress
event handler for this elementpublic void setOnprogress(Object onprogress)
onprogress
event handler for this element.onprogress
- the onprogress
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnratechange()
onratechange
event handler for this element.onratechange
event handler for this elementpublic void setOnratechange(Object onratechange)
onratechange
event handler for this element.onratechange
- the onratechange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnreadystatechange()
onreadystatechange
event handler for this element.onreadystatechange
event handler for this elementpublic void setOnreadystatechange(Object onreadystatechange)
onreadystatechange
event handler for this element.onreadystatechange
- the onreadystatechange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnreset()
onreset
event handler for this element.onreset
event handler for this elementpublic void setOnreset(Object onreset)
onreset
event handler for this element.onreset
- the onreset
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnscroll()
onscroll
event handler for this element.onscroll
event handler for this elementpublic void setOnscroll(Object onscroll)
onscroll
event handler for this element.onscroll
- the onscroll
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnsearch()
onsearch
event handler for this element.onsearch
event handler for this elementpublic void setOnsearch(Object onsearch)
onsearch
event handler for this element.onsearch
- the onsearch
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnseeked()
onseeked
event handler for this element.onseeked
event handler for this elementpublic void setOnseeked(Object onseeked)
onseeked
event handler for this element.onseeked
- the onseeked
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnseeking()
onseeking
event handler for this element.onseeking
event handler for this elementpublic void setOnseeking(Object onseeking)
onseeking
event handler for this element.onseeking
- the onseeking
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnselect()
onselect
event handler for this element.onselect
event handler for this elementpublic void setOnselect(Object onselect)
onselect
event handler for this element.onselect
- the onselect
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnselectionchange()
onselectionchange
event handler for this element.onselectionchange
event handler for this elementpublic void setOnselectionchange(Object onselectionchange)
onselectionchange
event handler for this element.onselectionchange
- the onselectionchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnselectstart()
onselectstart
event handler for this element.onselectstart
event handler for this elementpublic void setOnselectstart(Object onselectstart)
onselectstart
event handler for this element.onselectstart
- the onselectstart
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnstalled()
onstalled
event handler for this element.onstalled
event handler for this elementpublic void setOnstalled(Object onstalled)
onstalled
event handler for this element.onstalled
- the onstalled
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnsubmit()
onsubmit
event handler for this element.onsubmit
event handler for this elementpublic void setOnsubmit(Object onsubmit)
onsubmit
event handler for this element.onsubmit
- the onsubmit
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnsuspend()
onsuspend
event handler for this element.onsuspend
event handler for this elementpublic void setOnsuspend(Object onsuspend)
onsuspend
event handler for this element.onsuspend
- the onsuspend
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOntimeupdate()
ontimeupdate
event handler for this element.ontimeupdate
event handler for this elementpublic void setOntimeupdate(Object ontimeupdate)
ontimeupdate
event handler for this element.ontimeupdate
- the ontimeupdate
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOntoggle()
ontoggle
event handler for this element.ontoggle
event handler for this elementpublic void setOntoggle(Object ontoggle)
ontoggle
event handler for this element.ontoggle
- the ontoggle
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnvolumechange()
onvolumechange
event handler for this element.onvolumechange
event handler for this elementpublic void setOnvolumechange(Object onvolumechange)
onvolumechange
event handler for this element.onvolumechange
- the onvolumechange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnwaiting()
onwaiting
event handler for this element.onwaiting
event handler for this elementpublic void setOnwaiting(Object onwaiting)
onwaiting
event handler for this element.onwaiting
- the onwaiting
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnwebkitfullscreenchange()
onwebkitfullscreenchange
event handler for this element.onwebkitfullscreenchange
event handler for this elementpublic void setOnwebkitfullscreenchange(Object onwebkitfullscreenchange)
onwebkitfullscreenchange
event handler for this element.onwebkitfullscreenchange
- the onwebkitfullscreenchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnwebkitfullscreenerror()
onwebkitfullscreenerror
event handler for this element.onwebkitfullscreenerror
event handler for this elementpublic void setOnwebkitfullscreenerror(Object onwebkitfullscreenerror)
onwebkitfullscreenerror
event handler for this element.onwebkitfullscreenerror
- the onwebkitfullscreenerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnwheel()
onwheel
event handler for this element.onwheel
event handler for this elementpublic void setOnwheel(Object onwheel)
onwheel
event handler for this element.onwheel
- the onwheel
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnafterscriptexecute()
onafterscriptexecute
event handler for this element.onafterscriptexecute
event handler for this elementpublic void setOnafterscriptexecute(Object onafterscriptexecute)
onafterscriptexecute
event handler for this element.onafterscriptexecute
- the onafterscriptexecute
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnbeforescriptexecute()
onbeforescriptexecute
event handler for this element.onbeforescriptexecute
event handler for this elementpublic void setOnbeforescriptexecute(Object onbeforescriptexecute)
onbeforescriptexecute
event handler for this element.onbeforescriptexecute
- the onbeforescriptexecute
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
onmozfullscreenchange
event handler for this element.onmozfullscreenchange
event handler for this elementpublic void setOnmozfullscreenchange(Object onmozfullscreenchange)
onmozfullscreenchange
event handler for this element.onmozfullscreenchange
- the onmozfullscreenchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
onmozfullscreenerror
event handler for this element.onmozfullscreenerror
event handler for this elementpublic void setOnmozfullscreenerror(Object onmozfullscreenerror)
onmozfullscreenerror
event handler for this element.onmozfullscreenerror
- the onmozfullscreenerror
event handler for this elementpublic org.htmlunit.corejs.javascript.ScriptableObject getCurrentScript()
currentScript
public void setCurrentScript(org.htmlunit.corejs.javascript.ScriptableObject script)
script
- the currentScript
public org.htmlunit.corejs.javascript.ScriptableObject getFonts()
FontFaceSet
public HTMLCollection getAll()
all
property.all
propertypublic HtmlUnitScriptable getElementById(String id)
null
otherwise.id
- the ID to search fornull
otherwisepublic Object createProcessingInstruction(String target, String data)
target
- the targetdata
- the datapublic Object createCDATASection(String data)
data
- the datapublic void clear()
public boolean contains(Object element)
public String generateBlobUrl(Blob blob)
blob
- the Blob containing the dataURL.createObjectURL(Object)
public Blob resolveBlobUrl(String url)
url
- the url to resolvenull
if not found.public void revokeBlobUrl(String url)
url
- the url to revoke
URL.revokeObjectURL(Scriptable)
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.