Package | Description |
---|---|
com.gargoylesoftware.htmlunit.activex.javascript.msxml |
Implementations of the MSXML's (ActiveX) JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.arrays |
Implementations of the JavaScript host objects for Typed Arrays - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.canvas |
Implementations of the Canvas JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.crypto |
Implementations of the Crypto JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.css |
Implementations of the CSS JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.dom |
Implementations of the DOM JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.event |
Implementations of the JavaScript host objects for events - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.file |
Implementations of the File JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.geo |
Implementations of the Geolocation JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.html |
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.intl |
Implementations of the Internationalization JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.performance |
Implementations of the Performance JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.svg |
Implementations of the SVG JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.worker |
Implementations of the Web Workers JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.xml |
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLHTTPRequest.abort()
Cancels the current HTTP request.
|
void |
XSLProcessor.addParameter(String baseName,
Object parameter,
Object namespaceURI)
Adds parameters into an XSL Transformations (XSLT) style sheet.
|
Object |
XMLDOMNode.appendChild(Object newChild)
Appends a new child as the last child of the node.
|
void |
XMLDOMCharacterData.appendData(String data)
Appends the supplied string to the existing string data.
|
Object |
XMLDOMNode.cloneNode(boolean deep)
Clones a new node.
|
Object |
XMLDOMDocument.createAttribute(String name)
Creates a new attribute with the specified name.
|
Object |
XMLDOMDocument.createCDATASection(String data)
Creates a CDATA section node that contains the supplied data.
|
Object |
XMLDOMDocument.createComment(String data)
Creates a comment node that contains the supplied data.
|
Object |
XMLDOMDocument.createDocumentFragment()
Creates an empty document fragment object.
|
Object |
XMLDOMDocument.createElement(String tagName)
Creates an element node using the specified name.
|
Object |
XMLDOMDocument.createNode(Object type,
String name,
Object namespaceURI)
Creates a node using the supplied type, name, and namespace.
|
Object |
XMLDOMDocument.createProcessingInstruction(String target,
String data)
Creates a processing instruction node that contains the supplied target and data.
|
XSLProcessor |
XSLTemplate.createProcessor()
Creates a rental-model XSLProcessor object that will use this template.
|
Object |
XMLDOMDocument.createTextNode(String data)
Creates a text node that contains the supplied data.
|
void |
XMLDOMCharacterData.deleteData(int offset,
int count)
Deletes specified data.
|
String |
XMLHTTPRequest.getAllResponseHeaders()
Returns the values of all the HTTP headers.
|
Object |
XMLDOMElement.getAttribute(String name)
Returns the value of the attribute.
|
Object |
XMLDOMElement.getAttributeNode(String name)
Returns the attribute node.
|
XMLDOMNodeList |
XMLDOMElement.getElementsByTagName(String tagName)
Returns a list of all descendant elements that match the supplied name.
|
XMLDOMNodeList |
XMLDOMDocument.getElementsByTagName(String tagName)
Returns a collection of elements that have the specified name.
|
Object |
XMLDOMNamedNodeMap.getNamedItem(String name)
Retrieves the attribute with the specified name.
|
String |
XMLDOMDocument.getProperty(String name)
Retrieves the value of one of the second-level properties that are set either by default or using the
XMLDOMDocument.setProperty(String, String) method. |
String |
XMLHTTPRequest.getResponseHeader(String header)
Retrieves the value of an HTTP header from the response body.
|
boolean |
XMLDOMNode.hasChildNodes()
Provides a fast way to determine whether a node has children.
|
boolean |
XMLDOMImplementation.hasFeature(String feature,
String version)
Indicates support for the specified feature.
|
static Object |
XMLDOMNode.insertBefore(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Inserts a child node to the left of the specified node, or at the end of the list.
|
void |
XMLDOMCharacterData.insertData(int offset,
String data)
Inserts a string at the specified offset.
|
Object |
XMLDOMNamedNodeMap.item(int index)
Allows random access to individual nodes within the collection.
|
Object |
XMLDOMNodeList.item(Object index)
Allows random access to individual nodes within the collection.
|
boolean |
XMLDOMDocument.load(String xmlSource)
Loads an XML document from the specified location.
|
boolean |
XMLDOMDocument.loadXML(String strXML)
Loads an XML document using the supplied string.
|
Object |
XMLDOMNamedNodeMap.nextNode()
Returns the next node in the collection.
|
Object |
XMLDOMNodeList.nextNode()
Returns the next node in the collection.
|
Object |
XMLDOMDocument.nodeFromID(String id)
Returns the node that matches the ID attribute.
|
void |
XMLDOMElement.normalize()
Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node.
|
void |
XMLHTTPRequest.open(String method,
Object url,
Object asyncParam,
Object user,
Object password)
Initializes the request and specifies the method, URL, and authentication information for the request.
|
void |
XMLDOMElement.removeAttribute(String name)
Removes the named attribute.
|
XMLDOMAttribute |
XMLDOMElement.removeAttributeNode(XMLDOMAttribute att)
Removes the specified attribute from this element.
|
Object |
XMLDOMNode.removeChild(Object childNode)
Removes the specified child node from the list of children and returns it.
|
Object |
XMLDOMNamedNodeMap.removeNamedItem(String name)
Removes an attribute from the collection.
|
Object |
XMLDOMNode.replaceChild(Object newChild,
Object oldChild)
Replaces the specified old child node with the supplied new child node.
|
void |
XMLDOMCharacterData.replaceData(int offset,
int count,
String data)
Replaces the specified number of characters with the supplied string.
|
void |
XMLDOMNamedNodeMap.reset()
Resets the iterator accessed via
XMLDOMNamedNodeMap.nextNode() . |
void |
XMLDOMNodeList.reset()
Resets the iterator accessed via
XMLDOMNodeList.nextNode() . |
XMLDOMSelection |
XMLDOMNode.selectNodes(String expression)
Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes.
|
Object |
XMLDOMNode.selectSingleNode(String expression)
Applies the specified pattern-matching operation to this node's context and returns the first matching node.
|
void |
XMLHTTPRequest.send(Object body)
Sends an HTTP request to the server and receives a response.
|
void |
XMLDOMElement.setAttribute(String name,
String value)
Sets the value of the named attribute.
|
XMLDOMAttribute |
XMLDOMElement.setAttributeNode(XMLDOMAttribute newAtt)
Sets or updates the supplied attribute node on this element.
|
Object |
XMLDOMNamedNodeMap.setNamedItem(XMLDOMNode node)
Adds the supplied node to the collection.
|
void |
XMLDOMDocument.setProperty(String name,
String value)
This method is used to set second-level properties on the DOM object.
|
void |
XMLHTTPRequest.setRequestHeader(String name,
String value)
Sets the specified header to the specified value.
The open method must be called before this method, or an error will occur. |
Object |
XMLDOMText.splitText(int offset)
Splits this text node into two text nodes at the specified offset and inserts the new text node into the tree
as a sibling that immediately follows this node.
|
String |
XMLDOMCharacterData.substringData(int offset,
int count)
Retrieves a substring of the full string from the specified range.
|
void |
XSLProcessor.transform()
Starts the transformation process or resumes a previously failed transformation.
|
Modifier and Type | Method and Description |
---|---|
Object |
NamedNodeMap.getNamedItem(String name)
Gets the specified attribute.
|
Object |
NamedNodeMap.item(int index)
Returns the item at the specified index.
|
void |
NamedNodeMap.removeNamedItem(String name)
Removes the specified attribute.
|
void |
NamedNodeMap.setNamedItem(Node node)
Sets the specified attribute.
|
Modifier and Type | Method and Description |
---|---|
Set |
Set.add(Object value)
Adds the specified value.
|
WeakSet |
WeakSet.add(Object value)
Adds the specified value.
|
void |
ApplicationCache.add(String uri)
Adds an item to the dynamically managed entries.
|
Namespace |
NamespaceCollection.add(String namespace,
String urn,
String url)
Creates a new namespace and adds it to the collection.
|
void |
External.AddSearchProvider()
Empty implementation.
|
void |
Window.alert(Object message)
The JavaScript function
alert() . |
void |
Location.assign(String url)
Loads the new HTML document corresponding to the specified URL.
|
String |
Window.atob(String encodedData)
Decodes a string of data which has been encoded using base-64 encoding..
|
void |
External.AutoCompleteSaveForm()
Empty implementation.
|
void |
History.back()
JavaScript function "back".
|
void |
Element.blur()
Remove focus from this element.
|
void |
Window.blur()
Removes focus from this element.
|
String |
Window.btoa(String stringToEncode)
Creates a base-64 encoded ASCII string from a string of binary data.
|
void |
Window.cancelAnimationFrame(Object requestId)
Dummy implementation for
cancelAnimationFrame . |
void |
Window.captureEvents(String type)
Does nothing special anymore.
|
Promise |
Promise.catch_js(net.sourceforge.htmlunit.corejs.javascript.Function onRejected)
Returns a Promise and deals with rejected cases only.
|
void |
Set.clear()
Removes all elements.
|
void |
WeakSet.clear()
Removes all elements.
|
void |
Storage.clear()
Clears all items.
|
void |
WeakMap.clear()
Removes all elements.
|
void |
Map.clear()
Removes all elements.
|
void |
Window.clearInterval(int intervalID)
Cancels the interval previously started using the
Window.setInterval(Object, int, Object) method. |
void |
Window.clearTimeout(int timeoutId)
Cancels a time-out previously set with the
Window.setTimeout(Object, int, Object) method. |
void |
Window.close_js()
Closes this window.
|
void |
WebSocket.close(Object code,
Object reason)
Closes the WebSocket connection or connection attempt, if any.
|
void |
Window.CollectGarbage()
An undocumented IE function.
|
boolean |
Window.confirm(String message)
The JavaScript function
confirm . |
static void |
Console.debug(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
debug level. |
boolean |
Set.delete(Object key)
Removed the specified element.
|
boolean |
WeakSet.delete(Object key)
Removed the specified element.
|
boolean |
WeakMap.delete(Object key)
Removed the specified element.
|
boolean |
Map.delete(Object key)
Removed the specified element.
|
void |
Console.dir(Object o)
Implementation of console
dir function. |
boolean |
ApplicationCache.dispatchEvent(Event event)
Dispatches an event into the event system (standards-conformant browsers only).
|
void |
Window.dump(String message)
Prints messages to the
console . |
Object |
Map.entries()
Returns a new
Iterator object that contains the [key, value] pairs for each element in the
Map object in insertion order. |
static void |
Console.error(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
error level. |
boolean |
Window.find(String search,
boolean caseSensitive,
boolean backwards,
boolean wrapAround,
boolean wholeWord,
boolean searchInFrames,
boolean showDialog)
Stub only at the moment.
|
void |
Window.focus()
Sets the focus to this element.
|
void |
History.forward()
JavaScript function "forward".
|
Object |
WeakMap.get(Object key)
Returns the value of the given key.
|
Object |
Map.get(Object key)
Returns the value of the given key.
|
Object |
Element.getAttribute(String attributeName,
Integer flags)
Returns the value of the specified attribute.
|
Object |
Element.getAttributeNode(String name)
Retrieves an attribute node by name.
|
String |
Element.getAttributeNS(String namespaceURI,
String localName)
Gets the specified attribute.
|
ClientRect |
Element.getBoundingClientRect()
Retrieves an object that specifies the bounds of a collection of TextRectangle objects.
|
CSS2Properties |
Window.getComputedStyle(Object element,
String pseudoElement)
Returns computed style of the element.
|
HTMLCollection |
Element.getElementsByTagName(String tagName)
Returns all the descendant elements with the specified tag name.
|
Object |
Element.getElementsByTagNameNS(Object namespaceURI,
String localName)
Returns a list of elements with the given tag name belonging to the given namespace.
|
Object |
Storage.getItem(String key)
Returns the value of the specified key.
|
Selection |
Window.getSelection()
Returns the current selection.
|
void |
History.go(int relativeIndex)
JavaScript function "go".
|
void |
Console.group()
Implementation of group.
|
void |
Console.groupCollapsed()
Implementation of groupCollapsed.
|
void |
Console.groupEnd()
Implementation of endGroup.
|
boolean |
Set.has(Object value)
Returns whether the specified element exists or not.
|
boolean |
WeakSet.has(Object value)
Returns whether the specified element exists or not.
|
boolean |
WeakMap.has(Object key)
Returns whether an element with the specified key exists or not.
|
boolean |
Map.has(Object key)
Returns whether an element with the specified key exists or not.
|
boolean |
Element.hasAttribute(String name)
Returns true when an attribute with a given name is specified on this element or has a default value.
|
boolean |
Element.hasAttributeNS(String namespaceURI,
String localName)
Test for attribute.
|
boolean |
ApplicationCache.hasItem(String uri)
Returns
true if the specified URI represents a resource that's in the application cache's list. |
static void |
Console.info(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
info level. |
int |
External.IsSearchProviderInstalled()
Empty implementation.
|
Object |
SimpleArray.item(int index)
Returns the item at the given index.
|
ClientRect |
ClientRectList.item(int index)
Returns the item at the specified index.
|
String |
ApplicationCache.item(int index)
Returns the URI of the item at the specific offset into the list of cached resources.
|
Object |
NamespaceCollection.item(Object index)
Returns the namespace at the specified index.
|
boolean |
Navigator.javaEnabled()
Indicates if Java is enabled.
|
String |
Storage.key(int index)
Returns the key of the specified index.
|
Object |
Map.keys()
Returns a new
Iterator object that contains the keys for each element in the Map object
in insertion order. |
static void |
Console.log(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
log level. |
MediaQueryList |
Window.matchMedia(String mediaQueryString)
Returns a new MediaQueryList object representing the parsed results of the specified media query string.
|
void |
Window.moveBy(int x,
int y)
Does nothing.
|
void |
Window.moveTo(int x,
int y)
Does nothing.
|
Object |
SimpleArray.namedItem(String name)
Returns the item at the given index.
|
void |
Window.navigate(String url)
Loads the new HTML document corresponding to the specified URL.
|
WindowProxy |
Window.open(Object url,
Object name,
Object features,
Object replace)
Opens a new window.
|
void |
MessagePort.postMessage(String message,
Object transfer)
Posts a message.
|
void |
Window.postMessage(String message,
String targetOrigin,
Object transfer)
Posts a message.
|
void |
Window.print()
Prints the current page.
|
String |
Window.prompt(String message)
The JavaScript function
prompt . |
void |
History.pushState(Object object,
String title,
String url)
Pushes a state.
|
Node |
Element.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
NodeList |
Element.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
void |
PluginArray.refresh(boolean reloadDocuments)
Current implementation does nothing.
|
void |
Location.reload(boolean force)
Reloads the current page, possibly forcing retrieval from the server even if
the browser cache contains the latest version of the document.
|
void |
ApplicationCache.remove(String uri)
Removes an item from the list of dynamically managed entries.
|
void |
Element.removeAttribute(String name)
Removes the specified attribute.
|
void |
Element.removeAttributeNS(String namespaceURI,
String localName)
Removes the specified attribute.
|
void |
Storage.removeItem(String key)
Removes the specified key.
|
void |
Location.replace(String url)
Reloads the window using the specified URL via a postponed action.
|
void |
History.replaceState(Object object,
String title,
String url)
Replaces a state.
|
int |
Window.requestAnimationFrame(Object callback)
Dummy implementation for
requestAnimationFrame . |
void |
Window.resizeBy(int width,
int height)
Does nothing.
|
void |
Window.resizeTo(int width,
int height)
Does nothing.
|
String |
Window.ScriptEngine()
Gets the name of the scripting engine.
|
int |
Window.ScriptEngineBuildVersion()
Gets the build version of the scripting engine.
|
int |
Window.ScriptEngineMajorVersion()
Gets the major version of the scripting engine.
|
int |
Window.ScriptEngineMinorVersion()
Gets the minor version of the scripting engine.
|
void |
Window.scroll(int x,
int y)
Scrolls to the specified location on the page.
|
void |
Window.scrollBy(int x,
int y)
Scrolls the window content the specified distance.
|
void |
Window.scrollByLines(int lines)
Scrolls the window content down by the specified number of lines.
|
void |
Window.scrollByPages(int pages)
Scrolls the window content down by the specified number of pages.
|
void |
Window.scrollTo(int x,
int y)
Scrolls to the specified location on the page.
|
void |
WebSocket.send(Object content)
Transmits data to the server over the WebSocket connection.
|
WeakMap |
WeakMap.set(Object key,
Object value)
Adds the specified pair.
|
Map |
Map.set(Object key,
Object value)
Adds the specified pair.
|
void |
Element.setAttribute(String name,
String value)
Sets an attribute.
|
Attr |
Element.setAttributeNode(Attr newAtt)
Sets the attribute node for the specified attribute.
|
void |
Element.setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
Sets the specified attribute.
|
int |
Window.setInterval(Object code,
int timeout,
Object language)
Sets a chunk of JavaScript to be invoked each time a specified number of milliseconds has elapsed.
|
void |
Storage.setItem(String key,
String data)
Sets the item value.
|
int |
Window.setTimeout(Object code,
int timeout,
Object language)
Sets a chunk of JavaScript to be invoked at some specified time later.
|
Object |
Window.showModalDialog(String url,
Object arguments,
String features)
Creates a modal dialog box that displays the specified HTML document.
|
Object |
Window.showModelessDialog(String url,
Object arguments,
String features)
Creates a modeless dialog box that displays the specified HTML document.
|
void |
Window.stop()
Should implement the stop() function on the window object.
|
void |
ApplicationCache.swapCache()
Swaps in the newest version of the application cache.
|
boolean |
Navigator.taintEnabled()
Returns
false always as data tainting support is not enabled in HtmlUnit. |
Promise |
Promise.then(net.sourceforge.htmlunit.corejs.javascript.Function onFulfilled,
net.sourceforge.htmlunit.corejs.javascript.Function onRejected)
It takes two arguments, both are callback functions for the success and failure cases of the Promise.
|
void |
Console.time(String timerName)
This method replicates Firefox's behavior: if the timer already exists,
the start time is not overwritten.
|
void |
Console.timeEnd(String timerName)
This method replicates Firefox's behavior: if no timer is found, nothing is
logged to the console.
|
String |
Location.toString()
Returns the location URL.
|
String |
Symbol.toString() |
static void |
Console.trace(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
trace level. |
void |
ApplicationCache.update()
Begins the application cache update process.
|
Object |
Set.values()
Returns a new
Iterator object that contains the values for each element in the Set object
in insertion order. |
Object |
Map.values()
Returns a new
Iterator object that contains the values for each element in the Map object
in insertion order. |
static void |
Console.warn(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
warn level. |
Modifier and Type | Method and Description |
---|---|
float |
DataView.getFloat32(int byteOffset,
boolean littleEndian)
Gets a 32-bit floating point number at the specified byte offset from the start of the view.
|
double |
DataView.getFloat64(int byteOffset,
boolean littleEndian)
Gets a 64-bit floating point number at the specified byte offset from the start of the view.
|
short |
DataView.getInt16(int byteOffset,
boolean littleEndian)
Gets a signed 16-bit integer at the specified byte offset from the start of the view.
|
int |
DataView.getInt32(int byteOffset,
boolean littleEndian)
Gets a signed 32-bit integer at the specified byte offset from the start of the view.
|
byte |
DataView.getInt8(int byteOffset)
Gets a signed 8-bit integer at the specified byte offset from the start of the view.
|
int |
DataView.getUint16(int byteOffset,
boolean littleEndian)
Gets an unsigned 16-bit integer at the specified byte offset from the start of the view.
|
long |
DataView.getUint32(int byteOffset,
boolean littleEndian)
Gets an unsigned 32-bit integer at the specified byte offset from the start of the view.
|
int |
DataView.getUint8(int byteOffset)
Gets an unsigned 8-bit integer at the specified byte offset from the start of the view.
|
void |
ArrayBufferViewBase.set(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject sourceArray,
int offset)
Sets multiple values in the typed array, reading input values from a specified array.
|
void |
DataView.setFloat32(int byteOffset,
double value,
boolean littleEndian)
Sets the given 32-bit floating point number at the specified offset.
|
void |
DataView.setFloat64(int byteOffset,
double value,
boolean littleEndian)
Sets the given 32-bit floating point number at the specified offset.
|
void |
DataView.setInt16(int byteOffset,
int value,
boolean littleEndian)
Sets the given signed 16-bit integer at the specified offset.
|
void |
DataView.setInt32(int byteOffset,
int value,
boolean littleEndian)
Sets the given signed 32-bit integer at the specified offset.
|
void |
DataView.setInt8(int byteOffset,
int value)
Sets the given signed 8-bit integer at the specified offset.
|
void |
DataView.setUint16(int byteOffset,
int value,
boolean littleEndian)
Sets the given unsigned 16-bit integer at the specified offset.
|
void |
DataView.setUint32(int byteOffset,
int value,
boolean littleEndian)
Sets the given unsigned 32-bit integer at the specified offset.
|
void |
DataView.setUint8(int byteOffset,
int value)
Sets the given unsigned 8-bit integer at the specified offset.
|
ArrayBuffer |
ArrayBuffer.slice(int begin,
Object end)
Returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes
from begin, inclusive, up to end, exclusive.
|
ArrayBufferView |
ArrayBufferViewBase.subarray(int begin,
Object end)
Returns a new view on the ArrayBuffer store for this object.
|
Modifier and Type | Method and Description |
---|---|
void |
CanvasRenderingContext2D.arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean anticlockwise)
Draws an arc.
|
void |
CanvasRenderingContext2D.arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
Draws an arc.
|
void |
CanvasRenderingContext2D.beginPath()
Begins the subpaths.
|
void |
CanvasRenderingContext2D.bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y)
Draws a cubic Bézier curve.
|
void |
CanvasRenderingContext2D.clearRect(double x,
double y,
double w,
double h)
Clears the specified rectangular area.
|
void |
CanvasRenderingContext2D.clip()
Creates a new clipping region.
|
void |
CanvasRenderingContext2D.closePath()
Closes the subpaths.
|
void |
CanvasRenderingContext2D.createImageData()
Creates a new, blank ImageData object with the specified dimensions.
|
void |
CanvasRenderingContext2D.createLinearGradient(double x0,
double y0,
double r0,
double x1,
Object y1,
Object r1)
Creates linear gradient.
|
void |
CanvasRenderingContext2D.createPattern()
Creates a pattern.
|
void |
CanvasRenderingContext2D.createRadialGradient()
Creates a gradient.
|
void |
CanvasRenderingContext2D.drawImage(Object image,
int sx,
int sy,
Object sWidth,
Object sHeight,
Object dx,
Object dy,
Object dWidth,
Object dHeight)
Draws images onto the canvas.
|
void |
CanvasRenderingContext2D.ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle,
boolean anticlockwise)
Paints the specified ellipse.
|
void |
CanvasRenderingContext2D.fill()
Fills the shape.
|
void |
CanvasRenderingContext2D.fillRect(int x,
int y,
int w,
int h)
Paints the specified rectangular area.
|
void |
CanvasRenderingContext2D.fillText()
Dummy placeholder.
|
ImageData |
CanvasRenderingContext2D.getImageData(int sx,
int sy,
int sw,
int sh)
Returns the
ImageData object. |
void |
CanvasRenderingContext2D.getLineDash()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.getLineData()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.isPointInPath()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.lineTo(double x,
double y)
Connect the last point to the given point.
|
void |
CanvasRenderingContext2D.measureText()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.moveTo(double x,
double y)
Creates a new subpath.
|
void |
CanvasRenderingContext2D.putImageData()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.quadraticCurveTo(double controlPointX,
double controlPointY,
double endPointX,
double endPointY)
Draws a quadratic Bézier curve.
|
void |
CanvasRenderingContext2D.rect()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.restore()
Pops state stack and restore state.
|
void |
CanvasRenderingContext2D.rotate()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.save()
Pushes state on state stack.
|
void |
CanvasRenderingContext2D.scale(Object x,
Object y)
Changes the transformation matrix to apply a scaling transformation with the given characteristics.
|
void |
CanvasRenderingContext2D.setLineDash()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.setTransform()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.stroke()
Calculates the strokes of all the subpaths of the current path.
|
void |
CanvasRenderingContext2D.strokeRect(double x,
double y,
double w,
double h)
Strokes the specified rectangular area.
|
void |
CanvasRenderingContext2D.strokeText()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.transform()
Dummy placeholder.
|
void |
CanvasRenderingContext2D.translate(Object x,
Object y)
Changes the transformation matrix to apply a translation transformation with the given characteristics.
|
Modifier and Type | Method and Description |
---|---|
void |
Crypto.getRandomValues(ArrayBufferViewBase array)
Fills array with random values.
|
Modifier and Type | Method and Description |
---|---|
void |
MediaQueryList.addListener(Object listener)
Adds the
listener event handler for this element. |
int |
CSSStyleSheet.addRule(String selector,
String rule)
Adds a new rule.
|
void |
CSSStyleSheet.deleteRule(int position)
Deletes an existing rule.
|
Object |
CSSStyleDeclaration.getAttribute(String name,
int flag)
Returns the value of the specified attribute, or an empty string if it does not exist.
|
double |
CSSPrimitiveValue.getFloatValue(int unitType)
Gets the float value in the specified unit.
|
CSSValue |
CSSStyleDeclaration.getPropertyCSSValue(String name)
Gets the CSS property value.
|
String |
CSSStyleDeclaration.getPropertyPriority(String name)
Gets the value of the specified property of the style.
|
String |
CSSStyleDeclaration.getPropertyValue(String name)
Gets the value of the specified property of the style.
|
int |
CSSStyleSheet.insertRule(String rule,
int position)
Inserts a new rule.
|
Object |
StyleSheetList.item(int index)
Returns the style sheet at the specified index.
|
Object |
CSSRuleList.item(int index)
Returns the item in the given index.
|
boolean |
StyleMedia.matchMedium(String media)
Returns whether the specified media is supported by the object that displays the document object.
|
boolean |
CSSStyleDeclaration.removeAttribute(String name,
Object flag)
Removes the specified attribute.
|
void |
MediaQueryList.removeListener(Object listener)
Removes the
listener event handler for this element. |
String |
CSSStyleDeclaration.removeProperty(Object name)
Removes the named property.
|
void |
CSSStyleSheet.removeRule(int position)
Deletes an existing rule.
|
void |
CSSStyleDeclaration.setAttribute(String name,
String value,
Object flag)
Sets the value of the specified attribute.
|
void |
CSSStyleDeclaration.setProperty(String name,
Object value,
String important)
Sets the value of the specified property.
|
Modifier and Type | Method and Description |
---|---|
void |
DOMTokenList.add(String token)
Adds the specified token to the underlying string.
|
void |
Selection.addRange(Range range)
Adds a range to the selection.
|
Object |
Document.adoptNode(Node externalNode)
Adopts a node from an external document.
|
Object |
Node.appendChild(Object childObject)
Adds a DOM node to the node.
|
void |
CharacterData.appendData(String arg)
Append a string to character data.
|
void |
Document.captureEvents(String type)
Does nothing special anymore...
|
Object |
Range.cloneContents()
Returns a clone of the range in a document fragment.
|
Object |
Node.cloneNode(boolean deep)
Clones this node.
|
Object |
Range.cloneRange()
Returns a clone of the range.
|
void |
TextRange.collapse(boolean toStart)
Collapses the range.
|
void |
Range.collapse(boolean toStart)
Collapse a Range onto one of its boundaries.
|
void |
Selection.collapse(Node parentNode,
int offset)
Collapses the current selection to a single point.
|
void |
Selection.collapseToEnd()
Moves the anchor of the selection to the same point as the focus.
|
void |
Selection.collapseToStart()
Moves the focus of the selection to the same point at the anchor.
|
Object |
Range.compareBoundaryPoints(int how,
Range sourceRange)
Compares the boundary points of two Ranges.
|
short |
Node.compareDocumentPosition(Object node)
Compares the positions of this node and the provided node within the document.
|
int |
TextRange.compareEndPoints(String how,
TextRange sourceRange)
Compares an end point of a TextRange object with an end point of another range.
|
boolean |
Node.contains(Object element)
Checks whether the given element is contained within this object.
|
boolean |
DOMTokenList.contains(String token)
Checks if the specified token is contained in the underlying string.
|
Attr |
Document.createAttribute(String attributeName)
Creates a new HTML attribute with the specified name.
|
Object |
DocumentFragment.createAttribute(String attributeName)
Creates a new HTML attribute with the specified name.
|
Object |
Document.createComment(String comment)
Creates a new Comment.
|
Object |
DocumentFragment.createComment(String comment)
Creates a new Comment.
|
Object |
Range.createContextualFragment(String valueAsString)
Parses an HTML snippet.
|
XMLDocument |
DOMImplementation.createDocument(String namespaceURI,
String qualifiedName,
DocumentType doctype)
Creates an
XMLDocument . |
Object |
Document.createDocumentFragment()
Creates a new document fragment.
|
Object |
DocumentFragment.createDocumentFragment()
Creates a new document fragment.
|
Object |
Document.createElement(String tagName)
Creates a new element with the given tag name.
|
Object |
Document.createElementNS(String namespaceURI,
String qualifiedName)
Creates a new HTML element with the given tag name, and name.
|
HTMLDocument |
DOMImplementation.createHTMLDocument(Object titleObj)
Creates an
HTMLDocument . |
XPathNSResolver |
Document.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.
|
XPathNSResolver |
XPathEvaluator.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 |
Document.createTextNode(String newData)
Create a new DOM text node with the given data.
|
Object |
DocumentFragment.createTextNode(String newData)
Create a new DOM text node with the given data.
|
void |
Range.deleteContents()
Deletes the contents of the range.
|
void |
CharacterData.deleteData(int offset,
int count)
Delete characters from character data.
|
void |
NodeIterator.detach()
This operation is a no-op.
|
void |
Range.detach()
Releases Range from use to improve performance.
|
void |
Node.detachEvent(String type,
net.sourceforge.htmlunit.corejs.javascript.Function listener)
Allows the removal of event listeners on the event target.
|
void |
MutationObserver.disconnect()
Stops the MutationObserver instance from receiving notifications of DOM mutations.
|
Object |
TextRange.duplicate()
Duplicates this TextRange instance.
|
void |
Selection.empty()
Cancels the current selection, sets the selection type to none, and sets the item property to null (IE only).
|
XPathResult |
Document.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.
|
XPathResult |
XPathEvaluator.evaluate(String expression,
Object contextNodeObj,
Object resolver,
int type,
Object result)
Evaluates an XPath expression string and returns a result of the specified type if possible.
|
void |
Selection.extend(Node parentNode,
int offset)
Moves the focus of the selection to a specified point.
|
Object |
Range.extractContents()
Moves this range's contents from the document tree into a document fragment.
|
Node |
TreeWalker.firstChild()
Moves the TreeWalker to the first visible child of the current node,
and returns the new node.
|
Object |
Comment.getAttribute(String attributeName,
Integer flags)
Returns the value of the specified attribute.
|
Object |
Comment.getAttributeNode(String attributeName)
Gets the attribute node for the specified attribute.
|
String |
TextRange.getBookmark()
Retrieves a bookmark (opaque string) that can be used with
TextRange.moveToBookmark(java.lang.String)
to return to the same range. |
HTMLCollection |
Document.getElementsByTagName(String tagName)
Returns all the descendant elements with the specified tag name.
|
Object |
Document.getElementsByTagNameNS(Object namespaceURI,
String localName)
Returns a list of elements with the given tag name belonging to the given namespace.
|
Range |
Selection.getRangeAt(int index)
Returns the range at the specified index.
|
boolean |
Node.hasChildNodes()
Returns whether this node has any children.
|
boolean |
DOMImplementation.hasFeature(String feature,
String version)
Test if the DOM implementation implements a specific feature.
|
Object |
Document.importNode(Node importedNode,
boolean deep)
Imports a node from another document to this document.
|
boolean |
TextRange.inRange(TextRange other)
Indicates if a range is contained in current one.
|
static Object |
Node.insertBefore(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Add a DOM node as a child to this node before the referenced node.
|
void |
CharacterData.insertData(int offset,
String arg)
Insert a string into character data.
|
void |
Range.insertNode(Node newNode)
Inserts a new node at the beginning of the range.
|
boolean |
Node.isSameNode(Object other)
This method provides a way to determine whether two Node references returned by
the implementation reference the same object.
|
Object |
DOMTokenList.item(int index)
Returns the item at the specified index.
|
String |
MediaList.item(int index)
Returns the item or items corresponding to the specified index or key.
|
Object |
AbstractList.item(Object index)
Returns the item or items corresponding to the specified index or key.
|
Node |
XPathResult.iterateNext()
Iterates and returns the next node from the node set or
null if there are no more nodes. |
Node |
TreeWalker.lastChild()
Moves the TreeWalker to the last visible child of the current node,
and returns the new node.
|
String |
XPathNSResolver.lookupNamespaceURI(String prefix)
Look up the namespace URI associated to the given namespace prefix.
|
int |
TextRange.move(String unit,
Object count)
Collapses the given text range and moves the empty range by the given number of units.
|
int |
TextRange.moveEnd(String unit,
Object count)
Changes the end position of the range.
|
int |
TextRange.moveStart(String unit,
Object count)
Changes the start position of the range.
|
boolean |
TextRange.moveToBookmark(String bookmark)
Moves to a bookmark.
|
void |
TextRange.moveToElementText(HTMLElement element)
Moves the text range so that the start and end positions of the range encompass
the text in the specified element.
|
Node |
TreeWalker.nextNode()
Moves the TreeWalker to the next visible node in document order
relative to the current node, and returns the new node.
|
Node |
NodeIterator.nextNode()
Returns the next Node in the document, or null if there are none.
|
Node |
TreeWalker.nextSibling()
Moves the TreeWalker to the next sibling of the current node, and
returns the new node.
|
void |
Node.normalize()
Merges adjacent TextNode objects to produce a normalized document object model.
|
void |
MutationObserver.observe(Node node,
net.sourceforge.htmlunit.corejs.javascript.NativeObject options)
Registers the
MutationObserver instance to receive notifications of DOM mutations on the specified node. |
Node |
TextRange.parentElement()
Retrieves the parent element for the given text range.
|
Node |
TreeWalker.parentNode()
Moves to and returns the closest visible ancestor node of the current
node.
|
XMLDocument |
DOMParser.parseFromString(String str,
Object type)
Parses the given Unicode string into a DOM document.
|
Node |
TreeWalker.previousNode()
Moves the TreeWalker to the previous visible node in document order
relative to the current node, and returns the new node.
|
Node |
NodeIterator.previousNode()
Returns the previous Node in the document, or null if there are none.
|
Node |
TreeWalker.previousSibling()
Moves the TreeWalker to the previous sibling of the current node, and
returns the new node.
|
Node |
DocumentFragment.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
NodeList |
DocumentFragment.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
void |
Node.remove()
Removes the DOM node from its parent.
|
void |
DOMTokenList.remove(String token)
Removes the specified token from the underlying string.
|
void |
Selection.removeAllRanges()
Removes all ranges from the selection.
|
Object |
Node.removeChild(Object childObject)
Removes a DOM node from this node.
|
void |
Selection.removeRange(Range range)
Removes a range from the selection.
|
Object |
Node.replaceChild(Object newChildObject,
Object oldChildObject)
Replaces a child DOM node with another DOM node.
|
void |
CharacterData.replaceData(int offset,
int count,
String arg)
Replace characters of character data with a string.
|
void |
TextRange.select()
Makes the current range the active selection.
|
void |
Selection.selectAllChildren(Node parentNode)
Adds all the children of the specified node to the selection.
|
void |
Range.selectNode(Node refNode)
Selects a node and its contents.
|
void |
Range.selectNodeContents(Node refNode)
Select the contents within a node.
|
void |
Range.setEnd(Node refNode,
int offset)
Sets the attributes describing the end of a Range.
|
void |
Range.setEndAfter(Node refNode)
Sets the end of the range to be after the node.
|
void |
Range.setEndBefore(Node refNode)
Sets the end of the range to be before the node.
|
void |
TextRange.setEndPoint(String type,
TextRange other)
Sets the endpoint of the range based on the endpoint of another range..
|
void |
Range.setStart(Node refNode,
int offset)
Sets the attributes describing the start of a Range.
|
void |
Range.setStartAfter(Node refNode)
Sets the start of the range to be after the node.
|
void |
Range.setStartBefore(Node refNode)
Sets the start of the range to be before the node.
|
Node |
XPathResult.snapshotItem(int index)
Returns the indexth item in the snapshot collection.
|
Object |
Text.splitText(int offset)
Split a Text node in two.
|
String |
CharacterData.substringData(int offset,
int count)
Extract a substring from character data.
|
void |
Range.surroundContents(Node newNode)
Surrounds the contents of the range in a new node.
|
boolean |
DOMTokenList.toggle(String token)
Toggle the token, by adding or removing.
|
String |
Range.toString()
Returns the text of the Range.
|
Modifier and Type | Method and Description |
---|---|
void |
EventTarget.addEventListener(String type,
net.sourceforge.htmlunit.corejs.javascript.Scriptable listener,
boolean useCapture)
Allows the registration of event listeners on the event target.
|
boolean |
EventTarget.dispatchEvent(Event event)
Dispatches an event into the event system (standards-conformant browsers only).
|
void |
CloseEvent.initCloseEvent(String type,
boolean bubbles,
boolean cancelable,
boolean wasClean,
int reasonCode,
String reason)
Initializes this close event.
|
void |
CustomEvent.initCustomEvent(String type,
boolean bubbles,
boolean cancelable,
Object detail)
Implementation of the DOM Level 2 Event method for initializing the mouse event.
|
void |
Event.initEvent(String type,
boolean bubbles,
boolean cancelable)
Initializes this event.
|
void |
HashChangeEvent.initHashChangeEvent(String type,
boolean bubbles,
boolean cancelable,
String oldURL,
String newURL)
Initializes this event.
|
void |
KeyboardEvent.initKeyEvent(String type,
boolean bubbles,
boolean cancelable,
Object view,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int keyCode,
int charCode)
Implementation of the DOM Level 3 Event method for initializing the key event.
|
void |
MessageEvent.initMessageEvent(String type,
boolean canBubble,
boolean cancelable,
Object data,
String origin,
String lastEventId,
Window source,
Object ports)
Initializes an event object.
|
void |
MouseEvent.initMouseEvent(String type,
boolean bubbles,
boolean cancelable,
Object view,
int detail,
int screenX,
int screenY,
int clientX,
int clientY,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int button,
Object relatedTarget)
Implementation of the DOM Level 2 Event method for initializing the mouse event.
|
void |
PointerEvent.initPointerEvent(String type,
boolean bubbles,
boolean cancelable,
Object view,
int detail,
int screenX,
int screenY,
int clientX,
int clientY,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int button,
Object relatedTarget,
int offsetX,
int offsetY,
int width,
int height,
Double pressure,
int rotation,
int tiltX,
int tiltY,
int pointerId,
String pointerType,
int hwTimestamp,
boolean isPrimary)
Used for initializing the pointer event.
|
void |
UIEvent.initUIEvent(String type,
boolean bubbles,
boolean cancelable,
Object view,
int detail)
Implementation of the DOM Level 3 Event method for initializing the UI event.
|
void |
Event.preventDefault()
If, during any stage of event flow, this method is called the event is canceled.
|
void |
EventTarget.removeEventListener(String type,
net.sourceforge.htmlunit.corejs.javascript.Scriptable listener,
boolean useCapture)
Allows the removal of event listeners on the event target.
|
void |
Event.stopPropagation()
Stops the event from propagating.
|
Modifier and Type | Method and Description |
---|---|
File |
FileList.item(int index)
Returns a
File object representing the file at the specified index in the file list. |
void |
File.msClose()
Closes the file.
|
void |
File.slice()
Slices the file.
|
Modifier and Type | Method and Description |
---|---|
void |
Geolocation.clearWatch(int watchId)
Clears the specified watch ID.
|
void |
Geolocation.getCurrentPosition(net.sourceforge.htmlunit.corejs.javascript.Function successCallback,
Object errorCallback,
Object options)
Gets the current position.
|
int |
Geolocation.watchPosition(net.sourceforge.htmlunit.corejs.javascript.Function successCallback,
Object errorCallback,
Object options)
Notifies the callbacks whenever the position changes, till clearWatch() is called.
|
Modifier and Type | Method and Description |
---|---|
void |
HTMLSelectElement.add(HTMLOptionElement newOptionObject,
Object beforeOptionObject)
Adds a new item to the list (optionally) before the specified item.
|
void |
HTMLOptionsCollection.add(Object newOptionObject,
Object beforeOptionObject)
Adds a new item to the option collection.
|
boolean |
Enumerator.atEnd()
Returns whether the enumerator is at the end of the collection or not.
|
void |
HTMLElement.blur()
Remove focus from this element.
|
String |
HTMLMediaElement.canPlayType(String type)
Determines whether the specified media type can be played back.
|
void |
HTMLDocument.clear()
Does...
|
void |
HTMLElement.clearAttributes()
An IE-only method which clears all custom attributes.
|
void |
HTMLElement.click()
Click this element.
|
void |
HTMLDocument.close()
JavaScript function "close".
|
Object |
HTMLTableElement.createCaption()
If this table does not have a caption, this method creates an empty table caption,
adds it to the table and then returns it.
|
Event |
HTMLDocument.createEvent(String eventType)
Implementation of the
DocumentEvent interface's
DocumentEvent method. |
NodeIterator |
HTMLDocument.createNodeIterator(Node root,
double whatToShow,
net.sourceforge.htmlunit.corejs.javascript.Scriptable filter)
Returns a new NodeIterator object.
|
Range |
HTMLDocument.createRange()
Creates and returns a new range.
|
Object |
HTMLElement.createTextRange()
Creates a new TextRange object for this element.
|
Object |
HTMLTableElement.createTFoot()
If this table does not have a tfoot element, this method creates an empty tfoot
element, adds it to the table and then returns it.
|
Object |
HTMLTableElement.createTHead()
If this table does not have a thead element, this method creates an empty
thead element, adds it to the table and then returns it.
|
Object |
HTMLDocument.createTreeWalker(Node root,
double whatToShow,
net.sourceforge.htmlunit.corejs.javascript.Scriptable filter,
boolean expandEntityReferences)
Creates and returns a new TreeWalker.
|
void |
HTMLTableElement.deleteCaption()
Deletes this table's caption.
|
void |
HTMLTableRowElement.deleteCell(Object index)
Deletes the cell at the specified index in the element's cells collection.
|
void |
RowContainer.deleteRow(int rowIndex)
Deletes the row at the specified index.
|
void |
HTMLTableElement.deleteTFoot()
Deletes this table's tfoot element.
|
void |
HTMLTableElement.deleteTHead()
Deletes this table's thead element.
|
boolean |
HTMLDocument.dispatchEvent(Event event)
Dispatches an event into the event system (standards-conformant browsers only).
|
Object |
HTMLDocument.elementFromPoint(int x,
int y)
Returns the element for the specified x coordinate and the specified y coordinate.
|
boolean |
HTMLDocument.execCommand(String cmd,
boolean userInterface,
Object value)
Executes a command.
|
void |
HTMLElement.focus()
Sets the focus to this element.
|
Object |
HTMLElement.getAttributeNodeNS(String namespaceURI,
String localName)
Returns the specified attribute.
|
Object |
HTMLElement.getClientRects()
Retrieves a collection of rectangles that describes the layout of the contents of an object
or range within the client.
|
Object |
HTMLCanvasElement.getContext(String contextId)
Gets the context.
|
Object |
HTMLDocument.getElementById(String id)
Returns the element with the specified ID, or
null if that element could not be found. |
HTMLCollection |
HTMLElement.getElementsByClassName(String className)
Returns all the descendant elements with the specified class.
|
HTMLCollection |
HTMLDocument.getElementsByClassName(String className)
Returns all the descendant elements with the specified class name.
|
HTMLCollection |
HTMLDocument.getElementsByName(String elementName)
Returns all HTML elements that have a
name attribute with the specified value. |
Selection |
HTMLDocument.getSelection()
Returns the current selection.
|
boolean |
HTMLElement.hasAttribute(String name)
Returns true when an attribute with a given name is specified on this element or has a default value.
|
boolean |
HTMLDocument.hasFocus()
Returns
false if the active element in the document has no focus;
true if the active element in the document has focus. |
Object |
HTMLElement.insertAdjacentElement(String where,
Object insertedElement)
Inserts the given element into the element at the location.
|
void |
HTMLElement.insertAdjacentHTML(String position,
String text)
Parses the given text as HTML or XML and inserts the resulting nodes into the tree in the position given by the
position argument.
|
void |
HTMLElement.insertAdjacentText(String where,
String text)
Inserts the given text into the element at the specified location.
|
Object |
HTMLTableRowElement.insertCell(Object index)
Inserts a new cell at the specified index in the element's cells collection.
|
Object |
RowContainer.insertRow(Object index)
Inserts a new row at the specified index in the element's row collection.
|
Object |
Enumerator.item()
Returns the current item in the collection.
|
Object |
HTMLSelectElement.item(int index)
Gets the item at the specified index.
|
Object |
HTMLOptionsCollection.item(int index)
Returns the object at the specified index.
|
Object |
HTMLAllCollection.item(Object index)
Returns the item or items corresponding to the specified index or key.
|
Object |
HTMLFormElement.item(Object index,
Object subIndex)
Retrieves a form object or an object from an elements collection.
|
void |
HTMLElement.mergeAttributes(HTMLElement source,
Object preserveIdentity)
An IE-only method which copies all custom attributes from the specified source element
to this element.
|
void |
Enumerator.moveFirst()
Resets the current item in the collection to the first item.
|
void |
Enumerator.moveNext()
Moves the current item to the next item in the collection.
|
Object |
RowContainer.moveRow(int sourceIndex,
int targetIndex)
Moves the row at the specified source index to the specified target index, returning
the row that was moved.
|
Object |
HTMLCollection.namedItem(String name)
Retrieves the item or items corresponding to the specified name (checks ids, and if
that does not work, then names).
|
Object |
HTMLCollection.nextNode()
Returns the next node in the collection (supporting iteration in IE only).
|
Object |
HTMLDocument.open(String url,
Object name,
Object features,
Object replace)
JavaScript function "open".
|
boolean |
HTMLDocument.queryCommandEnabled(String cmd)
Indicates if the command can be successfully executed using execCommand, given
the current state of the document.
|
boolean |
HTMLDocument.queryCommandSupported(String cmd)
Indicates if the command is supported.
|
Node |
HTMLDocument.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
NodeList |
HTMLDocument.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
boolean |
HTMLElement.releaseCapture()
Mock for the moment.
|
boolean |
HTMLDocument.releaseCapture()
Mock for the moment.
|
void |
HTMLSelectElement.remove(int index)
Removes option at the specified index.
|
void |
HTMLOptionsCollection.remove(int index)
Removes the option at the specified index.
|
void |
HTMLElement.removeAttributeNode(Attr attribute)
Removes the specified attribute.
|
HTMLElement |
HTMLElement.removeNode(boolean removeChildren)
Removes this object from the document hierarchy.
|
void |
HTMLCollection.reset()
Resets the node iterator accessed via
HTMLCollection.nextNode() . |
void |
HTMLFormElement.reset()
Resets this form.
|
void |
HTMLElement.scrollIntoView()
Implement the scrollIntoView() JavaScript function but don't actually do
anything.
|
void |
HTMLTextAreaElement.select()
Selects this element.
|
void |
HTMLInputElement.select()
Select this element.
|
void |
HTMLElement.setActive()
Sets the object as active without setting focus to the object.
|
void |
HTMLElement.setCapture(boolean retargetToElement)
Mock for the moment.
|
void |
HTMLTextAreaElement.setSelectionRange(int start,
int end)
Sets the selected portion of this input element.
|
void |
HTMLInputElement.setSelectionRange(int start,
int end)
Sets the selected portion of this input element.
|
void |
HTMLFormElement.submit()
Submits the form (at the end of the current script execution).
|
Object |
HTMLCollection.tags(String tagName)
Returns all the elements in this element array that have the specified tag name.
|
String |
HTMLCanvasElement.toDataURL(Object type)
Get the data: URL representation of the Canvas element.
|
static void |
HTMLDocument.write(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
JavaScript function "write" may accept a variable number of arguments.
|
static void |
HTMLDocument.writeln(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
JavaScript function "writeln" may accept a variable number of arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
V8BreakIterator.adoptText(String text)
Assigns text to be segmented to the iterator.
|
String |
V8BreakIterator.breakType()
Returns the type of the break.
|
int |
V8BreakIterator.current()
Returns the index of the current break.
|
int |
V8BreakIterator.first()
Returns the index of the first break and moves pointer to it.
|
String |
DateTimeFormat.format(Object object)
Formats a date according to the locale and formatting options of this
DateTimeFormat object. |
int |
V8BreakIterator.next()
Returns the index of the next break and moves pointer to it.
|
Object |
V8BreakIterator.resolvedOptions()
Returns the resolved options.
|
Modifier and Type | Method and Description |
---|---|
double |
Performance.now() |
Object |
PerformanceNavigation.toJSON()
The
toJSON function. |
Modifier and Type | Method and Description |
---|---|
SVGMatrix |
SVGSVGElement.createSVGMatrix()
Creates a new
SVGMatrix . |
SVGRect |
SVGSVGElement.createSVGRect()
Creates a new
SVGRect . |
SVGMatrix |
SVGMatrix.flipX()
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.flipY()
Transforms the matrix.
|
SVGRect |
SVGElement.getBBox()
Returns the bounding box, in current user space, of the geometry of all contained graphics elements.
|
SVGMatrix |
SVGSVGElement.getScreenCTM()
Creates a new
SVGMatrix . |
float |
SVGPathElement.getTotalLength() |
SVGMatrix |
SVGMatrix.inverse()
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.multiply(SVGMatrix by)
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.rotate(double angle)
Rotates the matrix.
|
SVGMatrix |
SVGMatrix.rotateFromVector(double x,
double y)
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.scale(double factor)
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.scaleNonUniform(double factorX,
double factorY)
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.skewX(double angle)
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.skewY(double angle)
Transforms the matrix.
|
SVGMatrix |
SVGMatrix.translate(double x,
double y)
Translates the matrix.
|
Modifier and Type | Method and Description |
---|---|
static void |
DedicatedWorkerGlobalScope.importScripts(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
Import external script(s).
|
void |
DedicatedWorkerGlobalScope.postMessage(Object message)
Posts a message to the
Worker in the page's context. |
void |
Worker.postMessage(Object message)
Post the provided message to the WebWorker execution.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLHttpRequest.abort()
Cancels the current HTTP request.
|
void |
FormData.append(String name,
Object value,
Object filename)
Appends a new value onto an existing key inside a
FormData object,
or adds the key if it does not already exist. |
Object |
XMLDocument.createCDATASection(String data)
Creates a new createCDATASection.
|
Object |
XMLDocument.createProcessingInstruction(String target,
String data)
Creates a new ProcessingInstruction.
|
void |
FormData.delete_js(String name)
Removes the entry (if exists).
|
String |
FormData.get(String name) |
net.sourceforge.htmlunit.corejs.javascript.Scriptable |
FormData.getAll(String name) |
String |
XMLHttpRequest.getAllResponseHeaders()
Returns the labels and values of all the HTTP headers.
|
Object |
XMLDocument.getElementById(String id)
Returns the element with the specified ID, as long as it is an HTML element;
null otherwise. |
HTMLCollection |
XMLDocument.getElementsByTagName(String tagName)
Returns all the descendant elements with the specified tag name.
|
Object |
XSLTProcessor.getParameter(String namespaceURI,
String localName)
Gets a parameter if previously set by setParameter.
|
String |
XMLHttpRequest.getResponseHeader(String headerName)
Retrieves the value of an HTTP header from the response body.
|
boolean |
FormData.has(String name) |
void |
XSLTProcessor.importStylesheet(Node style)
Imports the specified stylesheet into this XSLTProcessor for transformations.
|
boolean |
XMLDocument.load(String xmlSource)
Loads an XML document from the specified location.
|
void |
XMLHttpRequest.open(String method,
Object urlParam,
Object asyncParam,
Object user,
Object password)
Assigns the destination URL, method and other optional attributes of a pending request.
|
void |
XMLHttpRequest.overrideMimeType(String mimeType)
Override the mime type returned by the server (if any).
|
void |
XMLHttpRequest.send(Object content)
Sends the specified content to the server in an HTTP request and receives the response.
|
String |
XMLSerializer.serializeToString(Node root)
The subtree rooted by the specified element is serialized to a string.
|
void |
FormData.set(String name,
Object value,
Object filename)
Sets a new value for an existing key inside a
FormData object,
or adds the key if it does not already exist. |
void |
XSLTProcessor.setParameter(String namespaceURI,
String localName,
Object value)
Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor.
|
void |
XMLHttpRequest.setRequestHeader(String name,
String value)
Sets the specified header to the specified value.
|
XMLDocument |
XSLTProcessor.transformToDocument(Node source)
Transforms the node source applying the stylesheet given by the importStylesheet() function.
|
DocumentFragment |
XSLTProcessor.transformToFragment(Node source,
Object output)
Transforms the node source applying the stylesheet given by the importStylesheet() function.
|
Copyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.