Uses of Annotation Interface
org.htmlunit.javascript.configuration.JsxFunction

Packages that use JsxFunction
Package
Description
Implementations of the various JavaScript host objects — users of HtmlUnit should not need anything in this package.
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Canvas JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Crypto JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the CSS JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the DOM JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the various JavaScript objects from the HTML Drag and Drop API.
Implementations of the JavaScript host objects for events - users of HtmlUnit shouldn't need anything in this package.
Implementations of the File JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Geolocation JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Internationalization JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the JavaScript host media objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Performance JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Scalable Vector Graphics JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the Web Workers JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.
Support js for Proxy auto config.
  • Uses of JsxFunction in org.htmlunit.javascript.host

    Methods in org.htmlunit.javascript.host with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    Empty implementation of AddSearchProvider.
    static void
    Element.after(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node or DOMString objects in the children list of this node's parent, just after this node.
    void
    Window.alert(Object message)
    The JavaScript function alert().
    static void
    Element.append(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node objects or string objects after the last child of this element.
    void
    URLSearchParams.append(String name, String value)
    Appends a new key/value pair as a search parameter.
    Window.atob(String encodedData)
    Decodes a string of data which has been encoded using base-64 encoding.
    void
    History.back()
    Navigates one step back in the session history.
    static void
    Element.before(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node or DOMString objects in the children list of this node's parent, just before this node.
    void
    Window.blur()
    Removes focus from this element.
    Window.btoa(String stringToEncode)
    Creates a base-64 encoded ASCII string from a string of binary data.
    void
    Window.cancelAnimationFrame(Object requestId)
    Remove the callback from the list of animationFrames.
    void
    Window.captureEvents(String type)
    Does nothing special anymore.
    void
    Storage.clear()
    Removes all items from this storage.
    void
    Window.clearInterval(int intervalID)
    Cancels a repeating interval that was previously established by a call to Window.setInterval(Context, VarScope, Scriptable, Object[], Function).
    void
    Window.clearTimeout(int timeoutId)
    Cancels a one-time timeout that was previously established by a call to Window.setTimeout(Context, VarScope, Scriptable, Object[], Function).
    void
    BroadcastChannel.close()
    Closes this BroadcastChannel, indicating it will no longer receive messages and allowing it to be garbage collected.
    void
    MessagePort.close()
    Disconnects the port so it is no longer active.
    void
    WebSocket.close(Object code, Object reason)
    Closes the WebSocket connection or connection attempt, if any.
    void
    Window.close_js()
    Closes this window.
    static Element
    Element.closest(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Traverses this element and its ancestors until it finds a node that matches the specified CSS selector.
    boolean
    Window.confirm(String message)
    The JavaScript function confirm.
    TextDecoder.decode(Object buffer)
    Decodes the given buffer and returns the decoded string.
    void
    URLSearchParams.delete(String name)
    Deletes the given search parameter and all its associated values.
    void
    Window.dump(String message)
    Logs messages to the browser's standard output (stdout).
    org.htmlunit.corejs.javascript.typedarrays.NativeUint8Array
    TextEncoder.encode(Object toEncode)
    Encodes the given string as a Uint8Array using UTF-8 encoding.
    org.htmlunit.corejs.javascript.ES6Iterator
    URLSearchParams.entries()
    Returns an iterator over all key/value pairs in this object.
    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
    URLSearchParams.forEach(Object callback)
    Iterates over all key/value pairs, calling the given callback for each.
    void
    History.forward()
    Navigates one step forward in the session history.
    URLSearchParams.get(String name)
    Returns the first value associated with the given search parameter.
    org.htmlunit.corejs.javascript.Scriptable
    URLSearchParams.getAll(String name)
    Returns all values associated with the given search parameter.
    Element.getAttribute(String attributeName)
    Returns the value of the specified attribute, or null if the attribute is not defined.
    org.htmlunit.corejs.javascript.Scriptable
    Returns the attribute names of this element as an array of strings.
    Element.getAttributeNode(String name)
    Retrieves an attribute node by name.
    Element.getAttributeNodeNS(String namespaceURI, String localName)
    Returns the attribute node with the given namespace URI and local name.
    Element.getAttributeNS(String namespaceURI, String localName)
    Returns the value of the specified attribute in the given namespace, or null if the attribute is not defined.
    Returns the bounding rectangle of this element relative to the viewport.
    Element.getClientRects()
    Returns a collection of DOMRect objects that describe the layout of the element's content on screen.
    Window.getComputedStyle(Object element, String pseudoElement)
    Returns computed style of the element.
    Element.getElementsByClassName(String className)
    Returns all descendant elements that have the specified class name(s).
    Element.getElementsByTagName(String tagName)
    Returns all descendant elements with the specified tag name.
    Element.getElementsByTagNameNS(Object namespaceURI, String localName)
    Returns a live HTMLCollection of elements with the given tag name belonging to the given namespace.
    Element.getHTML()
    Returns the contents of this node as HTML, ignoring shadow DOM parameters as shadow DOM is not supported.
    Storage.getItem(String key)
    Returns the value associated with the given key.
    NamedNodeMap.getNamedItem(String name)
    Returns the attribute node with the specified name.
    NamedNodeMap.getNamedItemNS(String namespaceURI, String localName)
    Returns the attribute node with the given namespace URI and local name.
    Window.getSelection()
    Returns the current selection.
    void
    History.go(int relativeIndex)
    Navigates by the given number of steps relative to the current position in the session history.
    boolean
    URLSearchParams.has(String name)
    Returns whether a parameter with the given name exists.
    boolean
    Element.hasAttribute(String name)
    Returns true when an attribute with the given name is specified on this element or has a default value.
    boolean
    Element.hasAttributeNS(String namespaceURI, String localName)
    Returns true if the element has an attribute with the given namespace URI and local name.
    boolean
    Element.hasAttributes()
    Returns whether this node has any attributes.
    Element.insertAdjacentElement(String where, Object insertedElement)
    Inserts the given element at the specified position relative to this element.
    void
    Element.insertAdjacentHTML(String position, String text)
    Parses the given text as HTML or XML and inserts the resulting nodes at the specified position.
    void
    Element.insertAdjacentText(String where, String text)
    Inserts the given text at the specified position relative to this element.
    Empty implementation of IsSearchProviderInstalled.
    DOMRectList.item(int index)
    Returns the DOMRect at the specified index.
    MimeTypeArray.item(int index)
    Returns the MimeType at the given index.
    NamedNodeMap.item(int index)
    Returns the attribute node at the specified index.
    Plugin.item(int index)
    Returns the MimeType at the given index.
    PluginArray.item(int index)
    Returns the Plugin at the given index.
    boolean
    Navigator.javaEnabled()
    Returns whether Java is enabled.
    Returns the URL as a string.
    URLSearchParams.jsToString()
    Returns the URL-encoded string representation of this search params object.
    Storage.key(int index)
    Returns the key at the specified index.
    org.htmlunit.corejs.javascript.ES6Iterator
    URLSearchParams.keys()
    Returns an iterator over all keys in this object.
    org.htmlunit.corejs.javascript.NativePromise
    FontFaceSet.load(String font, String text)
    Initiates loading of all fonts in the given list and returns a Promise that resolves when all fonts are loaded, or rejects if any font fails to load.
    static boolean
    Element.matches(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Returns true if the element would be selected by the specified CSS selector string.
    Window.matchMedia(String mediaQueryString)
    Returns a new MediaQueryList object representing the parsed results of the specified media query string.
    static void
    Element.moveBefore(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Moves a given node inside this element as a direct child, before a given reference node.
    void
    Window.moveBy(int x, int y)
    Does nothing.
    void
    Window.moveTo(int x, int y)
    Does nothing.
    static boolean
    Element.mozMatchesSelector(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Returns true if the element would be selected by the specified CSS selector string.
    MimeTypeArray.namedItem(String name)
    Returns the MimeType with the given name.
    Plugin.namedItem(String name)
    Returns the MimeType with the given MIME type string.
    PluginArray.namedItem(String name)
    Returns the Plugin with the given name.
    Window.open(Object url, Object name, Object features, Object replace)
    Opens a new window.
    void
    BroadcastChannel.postMessage(Object message)
    Posts a message to all other BroadcastChannel objects with the same name.
    void
    MessagePort.postMessage(String message, Object transfer)
    Posts a message to the connected port.
    static void
    Window.postMessage(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function funObj)
    Posts a message.
    static void
    Element.prepend(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node objects or string objects before the first child of this element.
    void
    Window.print()
    Prints the current page.
    Window.prompt(String message, Object defaultValue)
    The JavaScript function prompt.
    void
    History.pushState(Object object, String title, Object url)
    Pushes a new state onto the session history stack.
    Element.querySelector(String selectors)
    Returns the first descendant element that matches the specified CSS selector, or null if no matches are found.
    Element.querySelectorAll(String selectors)
    Returns a static NodeList of all descendant elements matching the given CSS selector(s).
    static Object
    Window.queueMicrotask(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Queues a microtask to be executed.
    void
    PluginArray.refresh(boolean reloadDocuments)
    Refreshes the plugin list.
    void
    Element.releaseCapture()
    Releases mouse capture from the object in the current document.
    void
    Window.releaseEvents(String type)
    Does nothing special anymore.
    void
    Element.remove()
    Removes the DOM node from its parent.
    void
    Element.removeAttribute(String name)
    Removes the attribute with the specified name.
    void
    Element.removeAttributeNode(Attr attribute)
    Removes the specified attribute node from this element.
    void
    Element.removeAttributeNS(String namespaceURI, String localName)
    Removes the attribute with the given namespace URI and local name.
    void
    Storage.removeItem(String key)
    Removes the item with the specified key.
    void
    NamedNodeMap.removeNamedItem(String name)
    Removes the attribute with the specified name.
    NamedNodeMap.removeNamedItemNS(String namespaceURI, String localName)
    Removes the attribute with the given namespace URI and local name.
    static void
    Element.replaceChildren(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Replaces the existing children of this element with a specified new set of children.
    void
    History.replaceState(Object object, String title, Object url)
    Replaces the current history entry with the given state.
    static void
    Element.replaceWith(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Replaces this node with a set of Node or DOMString objects.
    int
    Window.requestAnimationFrame(Object callback)
    Add callback to the list of animationFrames.
    void
    Window.resizeBy(int width, int height)
    Does nothing.
    void
    Window.resizeTo(int width, int height)
    Does nothing.
    void
    Element.scroll(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
    Scrolls to a particular set of coordinates inside this element.
    void
    Window.scroll(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
    Scrolls to the specified location on the page.
    void
    Element.scrollBy(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
    Scrolls the element by the given amount.
    void
    Window.scrollBy(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable 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
    Element.scrollIntoView()
    Scrolls the element into the visible area of the browser window.
    void
    Scrolls the element into the visible area if needed.
    void
    Element.scrollTo(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
    Scrolls to a particular set of coordinates inside this element.
    void
    Window.scrollTo(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y)
    Scrolls to the specified location on the page.
    void
    WebSocket.send(Object content)
    Transmits data to the server over the WebSocket connection.
    void
    URLSearchParams.set(String name, String value)
    Sets the value associated with the given search parameter, replacing all existing values.
    void
    Element.setAttribute(String name, String value)
    Sets the specified attribute to the given value.
    Element.setAttributeNode(Attr newAtt)
    Sets the attribute node for the specified attribute, replacing the existing node if present.
    void
    Element.setAttributeNS(String namespaceURI, String qualifiedName, String value)
    Sets the attribute with the given namespace URI and qualified name to the given value.
    void
    Element.setCapture(boolean retargetToElement)
    Sets mouse capture to the object that belongs to the current document.
    static Object
    Window.setInterval(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    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 value for the given key.
    void
    NamedNodeMap.setNamedItem(Node node)
    Sets the specified attribute node.
    void
    NamedNodeMap.setNamedItemNS(Node node)
    Sets the specified attribute node using its namespace URI and local name.
    static Object
    Window.setTimeout(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Sets a chunk of JavaScript to be invoked at some specified time later.
    void
    MessagePort.start()
    Starts the sending of messages queued on the port.
    void
    Window.stop()
    Should implement the stop() function on the window object.
    boolean
    Navigator.taintEnabled()
    Returns false as data tainting support is not enabled in HtmlUnit.
    boolean
    Element.toggleAttribute(String name, Object force)
    Toggles a Boolean attribute on this element.
    URL.toJSON()
    Returns a serialized version of the URL.
    org.htmlunit.corejs.javascript.ES6Iterator
    URLSearchParams.values()
    Returns an iterator over all values in this object.
    static boolean
    Element.webkitMatchesSelector(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Returns true if the element would be selected by the specified CSS selector string.
  • Uses of JsxFunction in org.htmlunit.javascript.host.abort

    Methods in org.htmlunit.javascript.host.abort with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    AbortController.abort()
    Aborts an asynchronous operation before it has completed.
  • Uses of JsxFunction in org.htmlunit.javascript.host.canvas

    Methods in org.htmlunit.javascript.host.canvas with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    CanvasGradient.addColorStop(double offset, String color)
    Adds a new stop, defined by an offset and a color, to the gradient.
    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.
    static void
    CanvasRenderingContext2D.clip(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Creates a new clipping region.
    void
    CanvasRenderingContext2D.closePath()
    Closes the current subpath.
    static ImageData
    CanvasRenderingContext2D.createImageData(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Returns the ImageData object.
    CanvasRenderingContext2D.createLinearGradient(double x0, double y0, double x1, Object y1)
    Creates linear gradient.
    void
    CanvasRenderingContext2D.createPattern()
    Creates a pattern.
    CanvasRenderingContext2D.createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
    Creates a gradient.
    void
    IntersectionObserver.disconnect()
    Disconnects.
    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.
    static void
    CanvasRenderingContext2D.fill(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Fills the shape.
    void
    CanvasRenderingContext2D.fillRect(int x, int y, int w, int h)
    Paints the specified rectangular area.
    void
    CanvasRenderingContext2D.fillText(String text, double x, double y)
    Fills a given text at the given (x, y) position.
    CanvasRenderingContext2D.getImageData(int sx, int sy, int sw, int sh)
    Returns the ImageData object.
    void
    CanvasRenderingContext2D.isPointInPath()
    Dummy placeholder.
    void
    CanvasRenderingContext2D.lineDash()
    Dummy placeholder.
    void
    CanvasRenderingContext2D.lineData()
    Dummy placeholder.
    void
    CanvasRenderingContext2D.lineTo(double x, double y)
    Connect the last point to the given point.
    CanvasRenderingContext2D.measureText(Object text)
    Calculate TextMetrics for the given text.
    void
    CanvasRenderingContext2D.moveTo(double x, double y)
    Creates a new subpath.
    void
    IntersectionObserver.observe(Element target)
    Observes the target.
    void
    CanvasRenderingContext2D.putImageData(ImageData imageData, int dx, int dy, Object dirtyX, Object dirtyY, Object dirtyWidth, Object dirtyHeight)
    Paints data from the given ImageData object onto the canvas.
    void
    CanvasRenderingContext2D.quadraticCurveTo(double controlPointX, double controlPointY, double endPointX, double endPointY)
    Draws a quadratic Bézier curve.
    void
    CanvasRenderingContext2D.rect(double x, double y, double w, double h)
    Renders a rectangle.
    void
    CanvasRenderingContext2D.restore()
    Pops state stack and restore state.
    void
    CanvasRenderingContext2D.rotate(double angle)
    Adds a rotation to the transformation matrix.
    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(double m11, double m12, double m21, double m22, double dx, double dy)
    Resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
    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.
    IntersectionObserver.takeRecords()
    Takes records.
    void
    CanvasRenderingContext2D.transform(double m11, double m12, double m21, double m22, double dx, double dy)
    Multiplies the current transformation with the matrix described by the arguments of this method.
    void
    CanvasRenderingContext2D.translate(double x, double y)
    Changes the transformation matrix to apply a translation transformation with the given characteristics.
    void
    IntersectionObserver.unobserve(Element target)
    Removes the target from observation.
  • Uses of JsxFunction in org.htmlunit.javascript.host.crypto

    Methods in org.htmlunit.javascript.host.crypto with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.decrypt(Object algorithm, CryptoKey key, Object data)
    Decrypts data using the given key and algorithm.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.deriveBits()
    Not yet implemented.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.deriveKey()
    Not yet implemented.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.digest(Object hashAlgorithm, Object data)
    Generates a digest of the given data.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.encrypt(Object algorithm, CryptoKey key, Object data)
    Encrypts data using the given key and algorithm.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.exportKey(String format, CryptoKey key)
    Exports a key in the specified format.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.generateKey(org.htmlunit.corejs.javascript.Scriptable keyGenParams, boolean isExtractable, org.htmlunit.corejs.javascript.Scriptable keyUsages)
    Generates a new key (for symmetric algorithms) or key pair (for public-key algorithms).
    org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView<?>
    Crypto.getRandomValues(org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView<?> array)
    Fills array with random values.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.importKey(String format, org.htmlunit.corejs.javascript.Scriptable keyData, org.htmlunit.corejs.javascript.Scriptable keyImportParams, boolean isExtractable, org.htmlunit.corejs.javascript.Scriptable keyUsages)
    Imports a key from external, portable key material.
    Crypto.randomUUID()
    Generates a random UUID.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.sign(Object algorithm, CryptoKey key, Object data)
    Signs data using the given key.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.unwrapKey()
    Not yet implemented.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.verify(Object algorithm, CryptoKey key, Object signature, Object data)
    Verifies a signature using the given key.
    org.htmlunit.corejs.javascript.NativePromise
    SubtleCrypto.wrapKey()
    Not yet implemented.
  • Uses of JsxFunction in org.htmlunit.javascript.host.css

    Methods in org.htmlunit.javascript.host.css with annotations of type JsxFunction
    Modifier and Type
    Method
    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
    CSSGroupingRule.deleteRule(int position)
    Deletes an existing rule.
    void
    CSSStyleSheet.deleteRule(int position)
    Deletes an existing rule.
    CSSStyleDeclaration.getPropertyPriority(String name)
    Gets the value of the specified property of the style.
    CSSStyleDeclaration.getPropertyValue(String name)
    Gets the value of the specified property of the style.
    int
    CSSGroupingRule.insertRule(String rule, Object position)
    Inserts a new rule.
    int
    CSSStyleSheet.insertRule(String rule, int position)
    Inserts a new rule.
    CSSRuleList.item(int index)
    Returns the item in the given index.
    CSSStyleDeclaration.item(int index)
    Returns a CSS property name from a CSSStyleDeclaration by index.
    MediaList.item(int index)
    Returns the item or items corresponding to the specified index or key.
    StyleSheetList.item(int index)
    Returns the style sheet at the specified index.
    boolean
    StyleMedia.matchMedium(String media)
    Returns whether the specified media is supported by the object that displays the document object.
    void
    MediaQueryList.removeListener(Object listener)
    Removes the listener event handler for this element.
    CSSStyleDeclaration.removeProperty(Object name)
    Removes the named property.
    void
    CSSStyleSheet.removeRule(int position)
    Deletes an existing rule.
    void
    CSSStyleDeclaration.setProperty(String name, Object value, String important)
    Sets the value of the specified property.
  • Uses of JsxFunction in org.htmlunit.javascript.host.dom

    Methods in org.htmlunit.javascript.host.dom with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    static void
    DOMTokenList.add(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Adds the given tokens to the list, omitting any that are already present.
    void
    Selection.addRange(Range range)
    Adds a range to the selection.
    Document.adoptNode(Node externalNode)
    Adopts a node from an external document.
    static void
    CharacterData.after(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode.
    static void
    DocumentType.after(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode.
    static void
    DocumentFragment.append(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node objects or string objects after the last child of the document fragment.
    Node.appendChild(Object childObject)
    Adds a DOM node to the node.
    void
    CharacterData.appendData(String arg)
    Appends a string to character data.
    static void
    CharacterData.before(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode.
    static void
    DocumentType.before(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode.
    void
    Document.captureEvents(String type)
    Does nothing special anymore.
    void
    Document.clear()
    Does... nothing.
    Returns a clone of the range in a document fragment.
    Node.cloneNode(boolean deep)
    Clones this node.
    Range.cloneRange()
    Returns a clone of the range.
    void
    Document.close()
    JavaScript function close.
    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.
    int
    Range.compareBoundaryPoints(int how, Range sourceRange)
    Compares the boundary points of two Ranges.
    int
    Compares the positions of this node and the provided node within the document.
    boolean
    Document.contains(Object element)
    Returns whether the specified node is contained within this node.
    boolean
    DOMTokenList.contains(String token)
    Checks if the specified token is contained in the underlying string.
    boolean
    Node.contains(Object element)
    Returns whether the specified node is contained within this node.
    Document.createAttribute(String attributeName)
    Creates a new HTML attribute with the specified name.
    Document.createCDATASection(String data)
    Creates a new createCDATASection.
    Document.createComment(String comment)
    Creates a new Comment.
    Range.createContextualFragment(String valueAsString)
    Parses an HTML snippet.
    DOMImplementation.createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
    Creates an XMLDocument.
    Creates a new document fragment.
    Document.createElement(Object tagName)
    Creates a new element with the given tag name.
    Document.createElementNS(String namespaceURI, String qualifiedName)
    Creates a new HTML element with the given tag name, and name.
    Document.createEvent(String eventType)
    Implementation of the DocumentEvent interface's DocumentEvent.createEvent(String) method.
    XPathEvaluator.createExpression(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Compiles an XPathExpression which can then be used for (repeated) evaluations of the XPath expression.
    DOMImplementation.createHTMLDocument(Object titleObj)
    Creates an HTMLDocument.
    Document.createNodeIterator(Node root, int whatToShow, org.htmlunit.corejs.javascript.Scriptable filter)
    Returns a new NodeIterator object.
    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.
    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.
    Document.createProcessingInstruction(String target, String data)
    Creates a new ProcessingInstruction.
    Document.createRange()
    Creates and returns a new range.
    Document.createTextNode(String newData)
    Create a new DOM text node with the given data.
    Document.createTreeWalker(Node root, double whatToShow, org.htmlunit.corejs.javascript.Scriptable filter, boolean expandEntityReferences)
    Creates and returns a new TreeWalker.
    void
    Deletes the contents of the range.
    void
    CharacterData.deleteData(int offset, int count)
    Deletes characters from character data.
    void
    NodeIterator.detach()
    This operation is a no-op.
    void
    Range.detach()
    Releases Range from use to improve performance.
    void
    MutationObserver.disconnect()
    Stops the MutationObserver instance from receiving notifications of DOM mutations.
    Document.elementFromPoint(int x, int y)
    Returns the element for the specified x coordinate and the specified y coordinate.
    void
    Selection.empty()
    Cancels the current selection, sets the selection type to none.
    org.htmlunit.corejs.javascript.Scriptable
    DOMTokenList.entries()
    Returns an Iterator allowing to go through all key/value pairs contained in this object.
    org.htmlunit.corejs.javascript.Scriptable
    NodeList.entries()
    Returns an Iterator allowing to go through all key/value pairs contained in this object.
    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.
    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.
    XPathExpression.evaluate(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Executes an XPath expression on the given node or document and returns an XPathResult.
    boolean
    Document.execCommand(String cmd, boolean userInterface, Object value)
    Executes a command.
    void
    Selection.extend(Node parentNode, int offset)
    Moves the focus of the selection to a specified point.
    Moves this range's contents from the document tree into a document fragment.
    TreeWalker.firstChild()
    Moves the TreeWalker to the first visible child of the current node, and returns the new node.
    DOMMatrixReadOnly.flipX()
    Returns a new matrix being the result of the original matrix flipped about the x-axis.
    DOMMatrixReadOnly.flipY()
    Returns a new matrix being the result of the original matrix flipped about the y-axis.
    void
    DOMTokenList.forEach(Object callback)
    Calls the callback given in parameter once for each value in the list.
    void
    NodeList.forEach(Object callback)
    Calls the callback given in parameter once for each value pair in the list, in insertion order.
    Returns an object that bounds the contents of the range.
    Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client.
    Document.getElementById(String id)
    Returns the element with the specified ID, as long as it is an HTML element; null otherwise.
    DocumentFragment.getElementById(Object id)
    Returns the element with the specified ID, or null if that element could not be found.
    Document.getElementsByClassName(String className)
    Returns all the descendant elements with the specified class name.
    Document.getElementsByName(String elementName)
    Returns all HTML elements that have a name attribute with the specified value.
    Document.getElementsByTagName(String tagName)
    Returns all the descendant elements with the specified tag name.
    Document.getElementsByTagNameNS(Object namespaceURI, String localName)
    Returns a list of elements with the given tag name belonging to the given namespace.
    Selection.getRangeAt(int index)
    Returns the range at the specified index.
    Returns the root node of this node's tree.
    Document.getSelection()
    Returns the current selection.
    boolean
    Returns whether this node has any child nodes.
    boolean
    DOMImplementation.hasFeature(String feature, String version)
    Tests if the DOM implementation implements a specific feature.
    boolean
    Document.hasFocus()
    Returns false if the active element in the document has no focus; true if the active element in the document has focus.
    Document.importNode(Node importedNode, boolean deep)
    Imports a node from another document to this document.
    static Node
    Node.insertBefore(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.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)
    Inserts a string into character data.
    void
    Range.insertNode(Node newNode)
    Inserts a new node at the beginning of the range.
    DOMMatrixReadOnly.inverse()
    Returns a new matrix which is the inverse of the original matrix.
    DOMMatrix.invertSelf()
    Inverts the original matrix.
    boolean
    Node.isEqualNode(Node other)
    Determines whether this node is structurally equal to the specified node.
    boolean
    Node.isSameNode(Object other)
    Determines whether this node and the specified node are the same object.
    DOMTokenList.item(int index)
    Returns the item at the specified index.
    NodeList.item(Object index)
    Returns the item or items corresponding to the specified index or key.
    XPathResult.iterateNext()
    Returns the next node in the result.
    DOMMatrixReadOnly.js_toString()
    Returns the values of the matrix as a CSS transform function string.
    Range.jsToString()
    Returns the text of the Range.
    Selection.jsToString()
    Returns the text represented by this selection.
    org.htmlunit.corejs.javascript.Scriptable
    DOMTokenList.keys()
    Returns an Iterator allowing to go through all keys contained in this object.
    org.htmlunit.corejs.javascript.Scriptable
    NodeList.keys()
    Returns an Iterator allowing to go through all keys contained in this object.
    TreeWalker.lastChild()
    Moves the TreeWalker to the last visible child of the current node, and returns the new node.
    NativeXPathNSResolver.lookupNamespaceURI(String prefix)
    Looks up the namespace URI associated to the given namespace prefix.
    Node.lookupPrefix(String namespace)
    Returns the namespace prefix for the specified namespace URI.
    static void
    DocumentFragment.moveBefore(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Moves a given Node inside the invoking node as a direct child, before a given reference node.
    DOMMatrixReadOnly.multiply(Object other)
    Returns a new matrix which is the dot product of the matrix and the given matrix.
    NodeIterator.nextNode()
    Returns the next Node in the document, or null if there are none.
    TreeWalker.nextNode()
    Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new 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, org.htmlunit.corejs.javascript.NativeObject options)
    Registers the MutationObserver instance to receive notifications of DOM mutations on the specified node.
    TreeWalker.parentNode()
    Moves to and returns the closest visible ancestor node of the current node.
    DOMParser.parseFromString(String str, Object type)
    Parses the given Unicode string into a DOM document.
    static void
    DocumentFragment.prepend(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Inserts a set of Node objects or string objects before the first child of the document fragment.
    NodeIterator.previousNode()
    Returns the previous Node in the document, or null if there are none.
    TreeWalker.previousNode()
    Moves the TreeWalker to the previous visible node in document order relative to the current node, and returns the new node.
    TreeWalker.previousSibling()
    Moves the TreeWalker to the previous sibling of the current node, and returns the new node.
    boolean
    Indicates if the command can be successfully executed using execCommand, given the current state of the document.
    boolean
    Indicates if the command is supported.
    Document.querySelector(String selectors)
    Returns the first element within the document that matches the specified group of selectors.
    DocumentFragment.querySelector(String selectors)
    Returns the first element within the document that matches the specified group of selectors.
    Document.querySelectorAll(String selectors)
    Retrieves all element nodes from descendants of the starting element node that match any selector within the supplied selector strings.
    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
    Document.releaseCapture()
    Mock for the moment.
    void
    Document.releaseEvents(String type)
    Does nothing special anymore.
    void
    CharacterData.remove()
    Removes the DOM node from its parent.
    void
    DocumentType.remove()
    Removes the DOM node from its parent.
    static void
    DOMTokenList.remove(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Removes the specified tokens from the underlying string.
    void
    Selection.removeAllRanges()
    Removes all ranges from the selection.
    Node.removeChild(Object childObject)
    Removes a DOM node from this node.
    void
    Selection.removeRange(Range range)
    Removes a range from the selection.
    boolean
    DOMTokenList.replace(String oldToken, String newToken)
    Replaces an existing token with a new token.
    Node.replaceChild(Object newChildObject, Object oldChildObject)
    Replaces a child DOM node with another DOM node.
    static void
    DocumentFragment.replaceChildren(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Replaces the existing children of a DocumentFragment with a specified new set of children.
    void
    CharacterData.replaceData(int offset, int count, String arg)
    Replaces characters of character data with a string.
    static void
    CharacterData.replaceWith(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Replaces the node with a set of Node or DOMString objects.
    static void
    DocumentType.replaceWith(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Replaces the node with a set of Node or DOMString objects.
    DOMMatrixReadOnly.rotate(Object rotZ)
    Returns a new matrix rotated about the z-axis by the specified angle.
    DOMMatrixReadOnly.rotateAxisAngle(Object xObj, Object yObj, Object zObj, Object alphaObj)
    Rotates the matrix by a given angle around the specified axis.
    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
    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.
    DOMMatrixReadOnly.skewX(Object alphaObj)
    Returns a new matrix skewed along the x-axis by the specified angle.
    DOMMatrixReadOnly.skewY(Object alphaObj)
    Returns a new matrix skewed along the y-axis by the specified angle.
    XPathResult.snapshotItem(int index)
    Returns the node at the specified index in the snapshot.
    Text.splitText(int offset)
    Splits a Text node in two.
    CharacterData.substringData(int offset, int count)
    Extracts a substring from character data.
    void
    Range.surroundContents(Node newNode)
    Surrounds the contents of the range in a new node.
    org.htmlunit.corejs.javascript.Scriptable
    MutationObserver.takeRecords()
    Empties the MutationObserver instance's record queue and returns what was in there.
    org.htmlunit.corejs.javascript.typedarrays.NativeFloat32Array
    DOMMatrixReadOnly.toFloat32Array()
    Returns a new Float32Array containing all 16 elements of the matrix.
    org.htmlunit.corejs.javascript.typedarrays.NativeFloat64Array
    DOMMatrixReadOnly.toFloat64Array()
    Returns a new Float64Array containing all 16 elements of the matrix.
    boolean
    DOMTokenList.toggle(String token)
    Toggles the token, adding or removing it.
    org.htmlunit.corejs.javascript.Scriptable
    DOMMatrixReadOnly.toJSON()
    Returns a JSON representation of the DOMMatrixReadOnly object.
    org.htmlunit.corejs.javascript.Scriptable
    DOMPointReadOnly.toJSON()
    Returns a JSON representation of the DOMPointReadOnly object.
    org.htmlunit.corejs.javascript.Scriptable
    DOMRectReadOnly.toJSON()
    Returns a JSON representation of the DOMRectReadOnly object.
    DOMMatrixReadOnly.translate(Object xObj, Object yObj, Object zObj)
    Creates a new matrix being the result of the original matrix with a translation applied.
    org.htmlunit.corejs.javascript.Scriptable
    DOMTokenList.values()
    Returns an Iterator allowing to go through all keys contained in this object.
    org.htmlunit.corejs.javascript.Scriptable
    NodeList.values()
    Returns an Iterator allowing to go through all keys contained in this object.
  • Uses of JsxFunction in org.htmlunit.javascript.host.draganddrop

    Methods in org.htmlunit.javascript.host.draganddrop with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    DataTransferItemList.add(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Creates a new DataTransferItem using the specified data and adds it to the drag data list.
    void
    DataTransferItemList.clear()
    Removes all DataTransferItem objects from the drag data items list, leaving the list empty.
    DataTransferItem.getAsFile()
    Returns the file represented by this drag data item.
    void
    DataTransferItem.getAsString(Object callback)
    Invokes the given callback with the drag data item's string data if the item contains a plain Unicode string.
    void
    DataTransferItemList.remove(int index)
    Removes the DataTransferItem at the specified index from the list.
  • Uses of JsxFunction in org.htmlunit.javascript.host.event

    Methods in org.htmlunit.javascript.host.event with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    EventTarget.addEventListener(String type, org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
    Registers an event listener on this event target.
    boolean
    EventTarget.dispatchEvent(Event event)
    Dispatches an event into the event system.
    void
    CustomEvent.initCustomEvent(String type, boolean bubbles, boolean cancelable, Object detail)
    Initializes the custom event.
    void
    Event.initEvent(String type, boolean bubbles, boolean cancelable)
    Initializes this event.
    void
    KeyboardEvent.initKeyboardEvent(String type, boolean bubbles, boolean cancelable, Object view, String key, int location, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey)
    Initializes the keyboard event using the DOM Level 3 Event specification.
    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
    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
    Cancels the event if it is cancelable, preventing the default action associated with it.
    void
    EventTarget.removeEventListener(String type, org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
    Removes a previously registered event listener from this event target.
    void
    Prevents other listeners of the same event from being called.
    void
    Stops the event from propagating.
  • Uses of JsxFunction in org.htmlunit.javascript.host.file

    Methods in org.htmlunit.javascript.host.file with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    org.htmlunit.corejs.javascript.NativePromise
    Returns a Promise that resolves with an ArrayBuffer containing the data in binary form.
    FileList.item(int index)
    Returns a File object representing the file at the specified index in the file list.
    void
    FileReader.readAsArrayBuffer(Object object)
    Reads the contents of the specified Blob or File.
    void
    FileReader.readAsDataURL(Object object)
    Reads the contents of the specified Blob or File.
    void
    FileReader.readAsText(Object object, Object encoding)
    Reads the contents of the specified Blob or File.
    Blob.slice(Object start, Object end, Object contentType)
    Returns a new Blob object which contains data from a subset of the blob on which it's called.
    void
    File.slice()
    Slices the file.
    Blob.stream()
    Returns a ReadableStream which, upon reading, returns the contents of the Blob.
    org.htmlunit.corejs.javascript.NativePromise
    Blob.text()
    Returns a Promise that resolves with a string containing the contents of the blob, interpreted as UTF-8.
  • Uses of JsxFunction in org.htmlunit.javascript.host.geo

    Methods in org.htmlunit.javascript.host.geo with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    Geolocation.clearWatch(int watchId)
    Clears the specified watch ID.
    void
    Geolocation.getCurrentPosition(org.htmlunit.corejs.javascript.Function successCallback, org.htmlunit.corejs.javascript.Function errorCallback, Object options)
    Gets the current position.
    int
    Geolocation.watchPosition(org.htmlunit.corejs.javascript.Function successCallback, Object errorCallback, Object options)
    Notifies the callbacks whenever the position changes, till clearWatch() is called.
  • Uses of JsxFunction in org.htmlunit.javascript.host.html

    Methods in org.htmlunit.javascript.host.html with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    HTMLOptionsCollection.add(Object newOptionObject, Object beforeOptionObject)
    Adds a new item to the option collection.
    void
    HTMLSelectElement.add(HTMLOptionElement newOptionObject, Object beforeOptionObject)
    Adds a new item to the list (optionally) before the specified item.
    void
    HTMLElement.blur()
    Remove focus from this element.
    static String
    HTMLMediaElement.canPlayType(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Determines whether the specified media type can be played back.
    boolean
    HTMLButtonElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLFieldSetElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLFormElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLInputElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLObjectElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLOutputElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLSelectElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    boolean
    HTMLTextAreaElement.checkValidity()
    Checks whether the element has any constraints and whether it satisfies them.
    void
    HTMLElement.click()
    Click this element.
    void
    HTMLDialogElement.close(Object returnValue)
    Closes the dialog.
    void
    HTMLDocument.close()
    JavaScript function close.
    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.
    HTMLTableElement.createTBody()
    If this table does not have a tbody element, this method creates an empty tbody element, adds it to the table and then returns it.
    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.
    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.
    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
    HTMLTableElement.deleteRow(int rowIndex)
    Deletes the row at the specified index.
    void
    HTMLTableSectionElement.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).
    void
    HTMLElement.focus()
    Sets the focus to this element.
    HTMLCanvasElement.getContext(String contextId)
    Gets the context.
    HTMLDocument.getElementById(String id)
    Returns the element with the specified ID, or null if that element could not be found.
    HTMLTableRowElement.insertCell(Object index)
    Inserts a new cell at the specified index in the element's cells collection.
    HTMLTableElement.insertRow(Object index)
    Inserts a new row at the specified index in the element's row collection.
    HTMLTableSectionElement.insertRow(Object index)
    Inserts a new row at the specified index in the element's row collection.
    HTMLAllCollection.item(Object index)
    Returns the item or items corresponding to the specified index or key.
    HTMLCollection.item(Object index)
    Returns the item or items corresponding to the specified index or key.
    HTMLOptionsCollection.item(int index)
    Returns the object at the specified index.
    HTMLSelectElement.item(int index)
    Gets the item at the specified index.
    void
    HTMLMediaElement.load()
    Resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.
    static void
    HTMLDocument.moveBefore(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Moves a given Node inside the invoking node as a direct child, before a given reference node.
    final org.htmlunit.corejs.javascript.Scriptable
    HTMLAllCollection.namedItem(String name)
    Retrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).
    org.htmlunit.corejs.javascript.Scriptable
    HTMLCollection.namedItem(String name)
    Retrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).
    org.htmlunit.corejs.javascript.Scriptable
    HTMLFormControlsCollection.namedItem(String name)
    Returns the element whose ID or name matches the specified value, from the collection.
    HTMLDocument.open(Object url, Object name, Object features, Object replace)
    JavaScript function "open".
    void
    HTMLMediaElement.pause()
    Pauses playback of the media.
    org.htmlunit.corejs.javascript.NativePromise
    HTMLMediaElement.play()
    Begins playback of the media.
    void
    HTMLOptionsCollection.remove(int index)
    Removes the option at the specified index.
    static void
    HTMLSelectElement.remove(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Removes option at the specified index.
    void
    HTMLFormElement.requestSubmit(Object submitter)
    Submits the form using the specified submit button.
    void
    HTMLFormElement.reset()
    Resets this form.
    void
    HTMLInputElement.select()
    Select this element.
    void
    HTMLTextAreaElement.select()
    Selects this element.
    void
    HTMLButtonElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLFieldSetElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLInputElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLObjectElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLOutputElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLSelectElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLTextAreaElement.setCustomValidity(String message)
    Sets the custom validity message for the element to the specified message.
    void
    HTMLInputElement.setSelectionRange(int start, int end)
    Sets the selected portion of this input element.
    void
    HTMLTextAreaElement.setSelectionRange(int start, int end)
    Sets the selected portion of this input element.
    void
    HTMLDialogElement.show()
    Displays the dialog non-modally.
    void
    HTMLDialogElement.showModal()
    Displays the dialog modally.
    void
    HTMLFormElement.submit()
    Submits the form (at the end of the current script execution).
    HTMLCanvasElement.toDataURL(Object type)
    Gets the data: URL representation of the canvas element.
    static void
    HTMLDocument.write(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    JavaScript function "write" may accept a variable number of arguments.
    static void
    HTMLDocument.writeln(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    JavaScript function "writeln" may accept a variable number of arguments.
  • Uses of JsxFunction in org.htmlunit.javascript.host.intl

    Methods in org.htmlunit.javascript.host.intl with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    V8BreakIterator.adoptText(String text)
    Assigns text to be segmented to the iterator.
    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.
    DateTimeFormat.format(Object object)
    Formats a date according to the locale and formatting options of this DateTimeFormat object.
    NumberFormat.format(Object object)
    Formats a number according to the locale and formatting options of this Intl.NumberFormat object.
    Locale.jsToString()
    Returns the locale's Unicode locale identifier string.
    Locale.maximize()
    Returns a Locale with maximized subtags.
    Locale.minimize()
    Returns a Locale with minimized subtags.
    int
    V8BreakIterator.next()
    Returns the index of the next break and moves pointer to it.
    org.htmlunit.corejs.javascript.Scriptable
    DateTimeFormat.resolvedOptions()
    Returns the resolved options for this Intl.DateTimeFormat object.
    org.htmlunit.corejs.javascript.Scriptable
    NumberFormat.resolvedOptions()
    Returns the resolved options for this Intl.NumberFormat object.
    V8BreakIterator.resolvedOptions()
    Returns the resolved options.
  • Uses of JsxFunction in org.htmlunit.javascript.host.media

    Methods in org.htmlunit.javascript.host.media with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    AudioNode.connect()
    Lets you connect one of the node's outputs to a target, which may be either another AudioNode (thereby directing the sound data to the specified node) or an AudioParam, so that the node's output data is automatically used to change the value of that parameter over time.
    BaseAudioContext.createBuffer()
    Creates a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode.
    BaseAudioContext.createBufferSource()
    Creates a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object.
    BaseAudioContext.createGain()
    Creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph.
    org.htmlunit.corejs.javascript.NativePromise
    BaseAudioContext.decodeAudioData(org.htmlunit.corejs.javascript.typedarrays.NativeArrayBuffer buffer, org.htmlunit.corejs.javascript.Function success, org.htmlunit.corejs.javascript.Function error)
    The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an ArrayBuffer.
    org.htmlunit.corejs.javascript.NativePromise
    MediaDevices.getUserMedia()
    Requests access to a media input device.
    void
    AudioBufferSourceNode.start()
    Schedules playback of the audio data contained in the buffer, or to begin playback immediately.
    void
    OfflineAudioContext.startRendering()
    Starts rendering the audio graph, taking into account the current connections and the current values of the various nodes' parameters.
  • Uses of JsxFunction in org.htmlunit.javascript.host.performance

    Methods in org.htmlunit.javascript.host.performance with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    org.htmlunit.corejs.javascript.Scriptable
    Performance.getEntries()
    Returns a list of all PerformanceEntry objects for the page.
    org.htmlunit.corejs.javascript.Scriptable
    Performance.getEntriesByName()
    Returns a list of all PerformanceEntry objects for the page with the given name.
    org.htmlunit.corejs.javascript.Scriptable
    Performance.getEntriesByType()
    Returns a list of PerformanceEntry objects of the given type.
    double
    Performance.now()
    Returns a high-resolution timestamp representing the time elapsed since the time origin.
    org.htmlunit.corejs.javascript.Scriptable
    PerformanceNavigation.toJSON()
    Serializes the object to a JSON representation.
  • Uses of JsxFunction in org.htmlunit.javascript.host.svg

    Methods in org.htmlunit.javascript.host.svg with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    SVGSVGElement.createSVGMatrix()
    Creates a new SVGMatrix.
    SVGSVGElement.createSVGRect()
    Creates a new SVGRect.
    SVGMatrix.flipX()
    Returns a new matrix that is the result of flipping this matrix along the x-axis.
    SVGMatrix.flipY()
    Returns a new matrix that is the result of flipping this matrix along the y-axis.
    SVGGElement.getBBox()
    Returns the bounding box, in current user space, of the geometry of all contained graphics elements.
    SVGGeometryElement.getBBox()
    Returns the bounding box, in current user space, of the geometry of all contained graphics elements.
    double
    SVGTextContentElement.getComputedTextLength()
    Returns the computed text length of the text content.
    SVGSVGElement.getScreenCTM()
    Returns the transformation matrix from the current user units to the device for the nearest viewport element.
    double
    SVGPathElement.getTotalLength()
    Returns the total length of the path.
    SVGMatrix.inverse()
    Returns the inverse of this matrix.
    SVGMatrix.multiply(SVGMatrix by)
    Returns a new matrix that is the result of multiplying this matrix by the given matrix.
    SVGMatrix.rotate(double angle)
    Returns a new matrix that is the result of rotating this matrix by the given angle.
    SVGMatrix.rotateFromVector(double x, double y)
    Returns a new matrix that is the result of rotating this matrix by the angle defined by the given vector.
    SVGMatrix.scale(double factor)
    Returns a new matrix that is the result of scaling this matrix uniformly by the given factor.
    SVGMatrix.scaleNonUniform(double factorX, double factorY)
    Returns a new matrix that is the result of scaling this matrix non-uniformly by the given factors along each axis.
    SVGMatrix.skewX(double angle)
    Returns a new matrix that is the result of skewing this matrix along the x-axis by the given angle.
    SVGMatrix.skewY(double angle)
    Returns a new matrix that is the result of skewing this matrix along the y-axis by the given angle.
    SVGMatrix.translate(double x, double y)
    Returns a new matrix that is the result of translating this matrix by the given distances.
  • Uses of JsxFunction in org.htmlunit.javascript.host.worker

    Methods in org.htmlunit.javascript.host.worker with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    WorkerGlobalScope.atob(String encodedData)
    Decodes a string of data that has been encoded using Base64 encoding.
    WorkerGlobalScope.btoa(String stringToEncode)
    Creates a Base64-encoded ASCII string from a string of binary data.
    static void
    DedicatedWorkerGlobalScope.importScripts(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function funObj)
    Imports one or more external scripts into the worker's scope.
    void
    DedicatedWorkerGlobalScope.postMessage(Object message)
    Posts a message to the Worker in the page's context.
    void
    Worker.postMessage(Object message)
    Posts the provided message to the worker's execution context.
    static Object
    DedicatedWorkerGlobalScope.setInterval(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Sets a chunk of JavaScript to be invoked repeatedly at the specified interval.
    static Object
    DedicatedWorkerGlobalScope.setTimeout(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
    Sets a chunk of JavaScript to be invoked after the specified delay.
    void
    Worker.terminate()
    Immediately terminates the worker without giving it the opportunity to finish any currently executing operations.
  • Uses of JsxFunction in org.htmlunit.javascript.host.xml

    Methods in org.htmlunit.javascript.host.xml with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    void
    XMLHttpRequest.abort()
    Cancels the current HTTP request.
    void
    FormData.append(String name, Object value, Object filename)
    Appends a new value for an existing key, or adds the key if it does not already exist.
    void
    FormData.delete_js(String name)
    Removes the entry with the given name, if it exists.
    org.htmlunit.corejs.javascript.Scriptable
    FormData.entries()
    Returns an iterator over all name/value pairs contained in this FormData.
    void
    FormData.forEach(Object callback)
    Iterates over all key/value pairs in this FormData, calling the given callback for each.
    FormData.get(String name)
    Returns the first value associated with the given name.
    org.htmlunit.corejs.javascript.Scriptable
    FormData.getAll(String name)
    Returns all values associated with the given name.
    XMLHttpRequest.getAllResponseHeaders()
    Returns all the HTTP response headers as a string.
    XMLDocument.getElementsByTagName(String tagName)
    Returns all the descendant elements with the specified tag name.
    XSLTProcessor.getParameter(String namespaceURI, String localName)
    Returns a parameter previously set by XSLTProcessor.setParameter(java.lang.String, java.lang.String, java.lang.Object), or null if not set.
    XMLHttpRequest.getResponseHeader(String headerName)
    Returns the value of the specified HTTP response header.
    boolean
    FormData.has(String name)
    Returns whether an entry with the given name exists.
    void
    XSLTProcessor.importStylesheet(Node style)
    Imports the specified stylesheet into this XSLTProcessor for transformations.
    FormData.keys()
    Returns an iterator over all keys in this FormData.
    void
    XMLHttpRequest.open(String method, Object urlParam, Object asyncParam, Object user, Object password)
    Initializes the request by specifying the destination URL, method, and other optional attributes.
    void
    XMLHttpRequest.overrideMimeType(String mimeType)
    Overrides the MIME type returned by the server.
    void
    XMLHttpRequest.send(Object content)
    Sends the request to the server with the specified content as the request body.
    XMLSerializer.serializeToString(Node root)
    Serializes the subtree rooted at the specified node to a string.
    void
    FormData.set(String name, Object value, Object filename)
    Sets a new value for an existing key, replacing all existing values for that key, 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 XSLTProcessor.
    void
    XMLHttpRequest.setRequestHeader(String name, String value)
    Sets the specified header to the specified value.
    XSLTProcessor.transformToDocument(Node source)
    Transforms the given source node by applying the stylesheet imported via XSLTProcessor.importStylesheet(org.htmlunit.javascript.host.dom.Node).
    XSLTProcessor.transformToFragment(Node source, Object output)
    Transforms the given source node by applying the imported stylesheet and appends the result as children of the given output document fragment.
    FormData.values()
    Returns an iterator over all values in this FormData.
  • Uses of JsxFunction in org.htmlunit.javascript.proxyautoconfig

    Methods in org.htmlunit.javascript.proxyautoconfig with annotations of type JsxFunction
    Modifier and Type
    Method
    Description
    static long
    ProxyAutoConfig.convertAddr(String ip)
    Concatenates the four dot-separated bytes into one 4-byte word and converts it to decimal.
    static boolean
    ProxyAutoConfig.dateRange(String value1, Object value2, Object value3, Object value4, Object value5, Object value6, Object value7)
    Checks if today is included in the specified range.
    static boolean
    ProxyAutoConfig.dnsDomainIs(String host, String domain)
    Returns true if the domain of hostname matches.
    static int
    ProxyAutoConfig.dnsDomainLevels(String host)
    Returns the number (integer) of DNS domain levels (number of dots) in the hostname.
    static String
    ProxyAutoConfig.dnsResolve(String host)
    Resolves the given DNS hostname into an IP address, and returns it in the dot separated format as a string.
    static boolean
    ProxyAutoConfig.isInNet(String host, String pattern, String mask)
    Returns true if the IP address of the host matches the specified IP address pattern.
    static boolean
    ProxyAutoConfig.isPlainHostName(String host)
    Returns true if there is no domain name in the hostname (no dots).
    static boolean
    ProxyAutoConfig.isResolvable(String host)
    Tries to resolve the hostname.
    static boolean
    ProxyAutoConfig.localHostOrDomainIs(String host, String hostdom)
    Returns true if the hostname matches exactly the specified hostname, or if there is no domain name part in the hostname, but the unqualified hostname matches.
    static String
    ProxyAutoConfig.myIpAddress()
    Returns the IP address of the local host, as a string in the dot-separated integer format.
    static boolean
    ProxyAutoConfig.shExpMatch(String str, String shexp)
    Matches the specified string against a shell expression, not regular expression.
    static boolean
    ProxyAutoConfig.timeRange(String value1, Object value2, Object value3, Object value4, Object value5, Object value6, Object value7)
    Checks if the time now is included in the specified range.
    static boolean
    ProxyAutoConfig.weekdayRange(String wd1, Object wd2, Object gmt)
    Checks if today is included in the specified range.