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 JsxFunctionModifier and TypeMethodDescriptionvoidExternal.addSearchProvider()Empty implementation ofAddSearchProvider.static voidElement.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 ofNodeorDOMStringobjects in the children list of this node's parent, just after this node.voidThe JavaScript functionalert().static voidElement.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 ofNodeobjects or string objects after the last child of this element.voidAppends a new key/value pair as a search parameter.Decodes a string of data which has been encoded using base-64 encoding.voidHistory.back()Navigates one step back in the session history.static voidElement.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 ofNodeorDOMStringobjects in the children list of this node's parent, just before this node.voidWindow.blur()Removes focus from this element.Creates a base-64 encoded ASCII string from a string of binary data.voidWindow.cancelAnimationFrame(Object requestId) Remove the callback from the list of animationFrames.voidWindow.captureEvents(String type) Does nothing special anymore.voidStorage.clear()Removes all items from this storage.voidWindow.clearInterval(int intervalID) Cancels a repeating interval that was previously established by a call toWindow.setInterval(Context, VarScope, Scriptable, Object[], Function).voidWindow.clearTimeout(int timeoutId) Cancels a one-time timeout that was previously established by a call toWindow.setTimeout(Context, VarScope, Scriptable, Object[], Function).voidBroadcastChannel.close()Closes thisBroadcastChannel, indicating it will no longer receive messages and allowing it to be garbage collected.voidMessagePort.close()Disconnects the port so it is no longer active.voidCloses the WebSocket connection or connection attempt, if any.voidWindow.close_js()Closes this window.static ElementElement.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.booleanThe JavaScript functionconfirm.Decodes the given buffer and returns the decoded string.voidDeletes the given search parameter and all its associated values.voidLogs messages to the browser's standard output (stdout).org.htmlunit.corejs.javascript.typedarrays.NativeUint8ArrayEncodes the given string as aUint8Arrayusing UTF-8 encoding.org.htmlunit.corejs.javascript.ES6IteratorURLSearchParams.entries()Returns an iterator over all key/value pairs in this object.booleanWindow.find(String search, boolean caseSensitive, boolean backwards, boolean wrapAround, boolean wholeWord, boolean searchInFrames, boolean showDialog) Stub only at the moment.voidWindow.focus()Sets the focus to this element.voidIterates over all key/value pairs, calling the given callback for each.voidHistory.forward()Navigates one step forward in the session history.Returns the first value associated with the given search parameter.org.htmlunit.corejs.javascript.ScriptableReturns all values associated with the given search parameter.Element.getAttribute(String attributeName) Returns the value of the specified attribute, ornullif the attribute is not defined.org.htmlunit.corejs.javascript.ScriptableElement.getAttributeNames()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, ornullif the attribute is not defined.Element.getBoundingClientRect()Returns the bounding rectangle of this element relative to the viewport.Element.getClientRects()Returns a collection ofDOMRectobjects 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 liveHTMLCollectionof 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.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.voidHistory.go(int relativeIndex) Navigates by the given number of steps relative to the current position in the session history.booleanReturns whether a parameter with the given name exists.booleanElement.hasAttribute(String name) Returnstruewhen an attribute with the given name is specified on this element or has a default value.booleanElement.hasAttributeNS(String namespaceURI, String localName) Returnstrueif the element has an attribute with the given namespace URI and local name.booleanElement.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.voidElement.insertAdjacentHTML(String position, String text) Parses the given text as HTML or XML and inserts the resulting nodes at the specified position.voidElement.insertAdjacentText(String where, String text) Inserts the given text at the specified position relative to this element.External.isSearchProviderInstalled()Empty implementation ofIsSearchProviderInstalled.DOMRectList.item(int index) Returns theDOMRectat the specified index.MimeTypeArray.item(int index) Returns theMimeTypeat the given index.NamedNodeMap.item(int index) Returns the attribute node at the specified index.Plugin.item(int index) Returns theMimeTypeat the given index.PluginArray.item(int index) Returns thePluginat the given index.booleanNavigator.javaEnabled()Returns whether Java is enabled.URL.jsToString()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.ES6IteratorURLSearchParams.keys()Returns an iterator over all keys in this object.org.htmlunit.corejs.javascript.NativePromiseInitiates loading of all fonts in the given list and returns aPromisethat resolves when all fonts are loaded, or rejects if any font fails to load.static booleanElement.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) Returnstrueif 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 voidElement.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.voidWindow.moveBy(int x, int y) Does nothing.voidWindow.moveTo(int x, int y) Does nothing.static booleanElement.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) Returnstrueif the element would be selected by the specified CSS selector string.Returns theMimeTypewith the given name.Returns theMimeTypewith the given MIME type string.Returns thePluginwith the given name.Opens a new window.voidBroadcastChannel.postMessage(Object message) Posts a message to all otherBroadcastChannelobjects with the same name.voidMessagePort.postMessage(String message, Object transfer) Posts a message to the connected port.static voidWindow.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 voidElement.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 ofNodeobjects or string objects before the first child of this element.voidWindow.print()Prints the current page.The JavaScript functionprompt.voidPushes a new state onto the session history stack.Element.querySelector(String selectors) Returns the first descendant element that matches the specified CSS selector, ornullif no matches are found.Element.querySelectorAll(String selectors) Returns a staticNodeListof all descendant elements matching the given CSS selector(s).static ObjectWindow.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.voidPluginArray.refresh(boolean reloadDocuments) Refreshes the plugin list.voidElement.releaseCapture()Releases mouse capture from the object in the current document.voidWindow.releaseEvents(String type) Does nothing special anymore.voidElement.remove()Removes the DOM node from its parent.voidElement.removeAttribute(String name) Removes the attribute with the specified name.voidElement.removeAttributeNode(Attr attribute) Removes the specified attribute node from this element.voidElement.removeAttributeNS(String namespaceURI, String localName) Removes the attribute with the given namespace URI and local name.voidStorage.removeItem(String key) Removes the item with the specified key.voidNamedNodeMap.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 voidElement.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.voidHistory.replaceState(Object object, String title, Object url) Replaces the current history entry with the given state.static voidElement.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 ofNodeorDOMStringobjects.intWindow.requestAnimationFrame(Object callback) Add callback to the list of animationFrames.voidWindow.resizeBy(int width, int height) Does nothing.voidWindow.resizeTo(int width, int height) Does nothing.voidElement.scroll(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y) Scrolls to a particular set of coordinates inside this element.voidWindow.scroll(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y) Scrolls to the specified location on the page.voidElement.scrollBy(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y) Scrolls the element by the given amount.voidWindow.scrollBy(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y) Scrolls the window content the specified distance.voidWindow.scrollByLines(int lines) Scrolls the window content down by the specified number of lines.voidWindow.scrollByPages(int pages) Scrolls the window content down by the specified number of pages.voidElement.scrollIntoView()Scrolls the element into the visible area of the browser window.voidElement.scrollIntoViewIfNeeded()Scrolls the element into the visible area if needed.voidElement.scrollTo(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y) Scrolls to a particular set of coordinates inside this element.voidWindow.scrollTo(org.htmlunit.corejs.javascript.Scriptable x, org.htmlunit.corejs.javascript.Scriptable y) Scrolls to the specified location on the page.voidTransmits data to the server over the WebSocket connection.voidSets the value associated with the given search parameter, replacing all existing values.voidElement.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.voidElement.setAttributeNS(String namespaceURI, String qualifiedName, String value) Sets the attribute with the given namespace URI and qualified name to the given value.voidElement.setCapture(boolean retargetToElement) Sets mouse capture to the object that belongs to the current document.static ObjectWindow.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.voidSets the value for the given key.voidNamedNodeMap.setNamedItem(Node node) Sets the specified attribute node.voidNamedNodeMap.setNamedItemNS(Node node) Sets the specified attribute node using its namespace URI and local name.static ObjectWindow.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.voidMessagePort.start()Starts the sending of messages queued on the port.voidWindow.stop()Should implement the stop() function on the window object.booleanNavigator.taintEnabled()Returnsfalseas data tainting support is not enabled in HtmlUnit.booleanElement.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.ES6IteratorURLSearchParams.values()Returns an iterator over all values in this object.static booleanElement.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) Returnstrueif 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 JsxFunctionModifier and TypeMethodDescriptionvoidAbortController.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 JsxFunctionModifier and TypeMethodDescriptionvoidCanvasGradient.addColorStop(double offset, String color) Adds a new stop, defined by an offset and a color, to the gradient.voidCanvasRenderingContext2D.arc(double x, double y, double radius, double startAngle, double endAngle, boolean anticlockwise) Draws an arc.voidCanvasRenderingContext2D.arcTo(double x1, double y1, double x2, double y2, double radius) Draws an arc.voidCanvasRenderingContext2D.beginPath()Begins the subpaths.voidCanvasRenderingContext2D.bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y) Draws a cubic Bézier curve.voidCanvasRenderingContext2D.clearRect(double x, double y, double w, double h) Clears the specified rectangular area.static voidCanvasRenderingContext2D.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.voidCanvasRenderingContext2D.closePath()Closes the current subpath.static ImageDataCanvasRenderingContext2D.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 theImageDataobject.CanvasRenderingContext2D.createLinearGradient(double x0, double y0, double x1, Object y1) Creates linear gradient.voidCanvasRenderingContext2D.createPattern()Creates a pattern.CanvasRenderingContext2D.createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1) Creates a gradient.voidIntersectionObserver.disconnect()Disconnects.voidCanvasRenderingContext2D.drawImage(Object image, int sx, int sy, Object sWidth, Object sHeight, Object dx, Object dy, Object dWidth, Object dHeight) Draws images onto the canvas.voidCanvasRenderingContext2D.ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, boolean anticlockwise) Paints the specified ellipse.static voidCanvasRenderingContext2D.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.voidCanvasRenderingContext2D.fillRect(int x, int y, int w, int h) Paints the specified rectangular area.voidFills a given text at the given (x, y) position.CanvasRenderingContext2D.getImageData(int sx, int sy, int sw, int sh) Returns theImageDataobject.voidCanvasRenderingContext2D.isPointInPath()Dummy placeholder.voidCanvasRenderingContext2D.lineDash()Dummy placeholder.voidCanvasRenderingContext2D.lineData()Dummy placeholder.voidCanvasRenderingContext2D.lineTo(double x, double y) Connect the last point to the given point.CanvasRenderingContext2D.measureText(Object text) Calculate TextMetrics for the given text.voidCanvasRenderingContext2D.moveTo(double x, double y) Creates a new subpath.voidObserves the target.voidCanvasRenderingContext2D.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.voidCanvasRenderingContext2D.quadraticCurveTo(double controlPointX, double controlPointY, double endPointX, double endPointY) Draws a quadratic Bézier curve.voidCanvasRenderingContext2D.rect(double x, double y, double w, double h) Renders a rectangle.voidCanvasRenderingContext2D.restore()Pops state stack and restore state.voidCanvasRenderingContext2D.rotate(double angle) Adds a rotation to the transformation matrix.voidCanvasRenderingContext2D.save()Pushes state on state stack.voidChanges the transformation matrix to apply a scaling transformation with the given characteristics.voidCanvasRenderingContext2D.setLineDash()Dummy placeholder.voidCanvasRenderingContext2D.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.voidCanvasRenderingContext2D.stroke()Calculates the strokes of all the subpaths of the current path.voidCanvasRenderingContext2D.strokeRect(double x, double y, double w, double h) Strokes the specified rectangular area.voidCanvasRenderingContext2D.strokeText()Dummy placeholder.IntersectionObserver.takeRecords()Takes records.voidCanvasRenderingContext2D.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.voidCanvasRenderingContext2D.translate(double x, double y) Changes the transformation matrix to apply a translation transformation with the given characteristics.voidRemoves the target from observation. -
Uses of JsxFunction in org.htmlunit.javascript.host.crypto
Methods in org.htmlunit.javascript.host.crypto with annotations of type JsxFunctionModifier and TypeMethodDescriptionorg.htmlunit.corejs.javascript.NativePromiseDecrypts data using the given key and algorithm.org.htmlunit.corejs.javascript.NativePromiseSubtleCrypto.deriveBits()Not yet implemented.org.htmlunit.corejs.javascript.NativePromiseSubtleCrypto.deriveKey()Not yet implemented.org.htmlunit.corejs.javascript.NativePromiseGenerates a digest of the given data.org.htmlunit.corejs.javascript.NativePromiseEncrypts data using the given key and algorithm.org.htmlunit.corejs.javascript.NativePromiseExports a key in the specified format.org.htmlunit.corejs.javascript.NativePromiseSubtleCrypto.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.NativePromiseSubtleCrypto.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.NativePromiseSigns data using the given key.org.htmlunit.corejs.javascript.NativePromiseSubtleCrypto.unwrapKey()Not yet implemented.org.htmlunit.corejs.javascript.NativePromiseVerifies a signature using the given key.org.htmlunit.corejs.javascript.NativePromiseSubtleCrypto.wrapKey()Not yet implemented. -
Uses of JsxFunction in org.htmlunit.javascript.host.css
Methods in org.htmlunit.javascript.host.css with annotations of type JsxFunctionModifier and TypeMethodDescriptionvoidMediaQueryList.addListener(Object listener) Adds thelistenerevent handler for this element.intAdds a new rule.voidCSSGroupingRule.deleteRule(int position) Deletes an existing rule.voidCSSStyleSheet.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.intCSSGroupingRule.insertRule(String rule, Object position) Inserts a new rule.intCSSStyleSheet.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.booleanStyleMedia.matchMedium(String media) Returns whether the specified media is supported by the object that displays the document object.voidMediaQueryList.removeListener(Object listener) Removes thelistenerevent handler for this element.CSSStyleDeclaration.removeProperty(Object name) Removes the named property.voidCSSStyleSheet.removeRule(int position) Deletes an existing rule.voidCSSStyleDeclaration.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 JsxFunctionModifier and TypeMethodDescriptionstatic voidDOMTokenList.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.voidAdds a range to the selection.Adopts a node from an external document.static voidCharacterData.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 voidDocumentType.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 voidDocumentFragment.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.voidCharacterData.appendData(String arg) Appends a string to character data.static voidCharacterData.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 voidDocumentType.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.voidDocument.captureEvents(String type) Does nothing special anymore.voidDocument.clear()Does... nothing.Range.cloneContents()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.voidDocument.close()JavaScript functionclose.voidRange.collapse(boolean toStart) Collapse a Range onto one of its boundaries.voidCollapses the current selection to a single point.voidSelection.collapseToEnd()Moves the anchor of the selection to the same point as the focus.voidSelection.collapseToStart()Moves the focus of the selection to the same point at the anchor.intRange.compareBoundaryPoints(int how, Range sourceRange) Compares the boundary points of two Ranges.intNode.compareDocumentPosition(Object node) Compares the positions of this node and the provided node within the document.booleanReturns whether the specified node is contained within this node.booleanChecks if the specified token is contained in the underlying string.booleanReturns 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 anXMLDocument.Document.createDocumentFragment()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 theDocumentEventinterface'sDocumentEvent.createEvent(String)method.static XPathExpressionXPathEvaluator.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 anHTMLDocument.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.voidRange.deleteContents()Deletes the contents of the range.voidCharacterData.deleteData(int offset, int count) Deletes characters from character data.voidNodeIterator.detach()This operation is a no-op.voidRange.detach()Releases Range from use to improve performance.voidMutationObserver.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.voidSelection.empty()Cancels the current selection, sets the selection type to none.org.htmlunit.corejs.javascript.ScriptableDOMTokenList.entries()Returns an Iterator allowing to go through all key/value pairs contained in this object.org.htmlunit.corejs.javascript.ScriptableNodeList.entries()Returns an Iterator allowing to go through all key/value pairs contained in this object.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.static XPathResultXPathExpression.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.booleanDocument.execCommand(String cmd, boolean userInterface, Object value) Executes a command.voidMoves the focus of the selection to a specified point.Range.extractContents()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.voidCalls thecallbackgiven in parameter once for each value in the list.voidCalls thecallbackgiven in parameter once for each value pair in the list, in insertion order.Range.getBoundingClientRect()Returns an object that bounds the contents of the range.Range.getClientRects()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;nullotherwise.DocumentFragment.getElementById(Object id) Returns the element with the specified ID, ornullif 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 anameattribute 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.Node.getRootNode()Returns the root node of this node's tree.Document.getSelection()Returns the current selection.booleanNode.hasChildNodes()Returns whether this node has any child nodes.booleanDOMImplementation.hasFeature(String feature, String version) Tests if the DOM implementation implements a specific feature.booleanDocument.hasFocus()Returnsfalseif the active element in the document has no focus;trueif the active element in the document has focus.Document.importNode(Node importedNode, boolean deep) Imports a node from another document to this document.static NodeNode.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.voidCharacterData.insertData(int offset, String arg) Inserts a string into character data.voidRange.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.booleanNode.isEqualNode(Node other) Determines whether this node is structurally equal to the specified node.booleanNode.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.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.ScriptableDOMTokenList.keys()Returns an Iterator allowing to go through all keys contained in this object.org.htmlunit.corejs.javascript.ScriptableNodeList.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 voidDocumentFragment.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.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.voidNode.normalize()Merges adjacent TextNode objects to produce a normalized document object model.voidRegisters theMutationObserverinstance 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 voidDocumentFragment.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.booleanDocument.queryCommandEnabled(String cmd) Indicates if the command can be successfully executed usingexecCommand, given the current state of the document.booleanDocument.queryCommandSupported(String cmd) 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.voidDocument.releaseCapture()Mock for the moment.voidDocument.releaseEvents(String type) Does nothing special anymore.voidCharacterData.remove()Removes the DOM node from its parent.voidDocumentType.remove()Removes the DOM node from its parent.static voidDOMTokenList.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.voidSelection.removeAllRanges()Removes all ranges from the selection.Node.removeChild(Object childObject) Removes a DOM node from this node.voidSelection.removeRange(Range range) Removes a range from the selection.booleanReplaces an existing token with a new token.Node.replaceChild(Object newChildObject, Object oldChildObject) Replaces a child DOM node with another DOM node.static voidDocumentFragment.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.voidCharacterData.replaceData(int offset, int count, String arg) Replaces characters of character data with a string.static voidCharacterData.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 voidDocumentType.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.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.voidSelection.selectAllChildren(Node parentNode) Adds all the children of the specified node to the selection.voidRange.selectNode(Node refNode) Selects a node and its contents.voidRange.selectNodeContents(Node refNode) Select the contents within a node.voidSets the attributes describing the end of a Range.voidRange.setEndAfter(Node refNode) Sets the end of the range to be after the node.voidRange.setEndBefore(Node refNode) Sets the end of the range to be before the node.voidSets the attributes describing the start of a Range.voidRange.setStartAfter(Node refNode) Sets the start of the range to be after the node.voidRange.setStartBefore(Node refNode) Sets the start of the range to be before the node.Returns a new matrix skewed along the x-axis by the specified angle.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.voidRange.surroundContents(Node newNode) Surrounds the contents of the range in a new node.org.htmlunit.corejs.javascript.ScriptableMutationObserver.takeRecords()Empties the MutationObserver instance's record queue and returns what was in there.org.htmlunit.corejs.javascript.typedarrays.NativeFloat32ArrayDOMMatrixReadOnly.toFloat32Array()Returns a new Float32Array containing all 16 elements of the matrix.org.htmlunit.corejs.javascript.typedarrays.NativeFloat64ArrayDOMMatrixReadOnly.toFloat64Array()Returns a new Float64Array containing all 16 elements of the matrix.booleanToggles the token, adding or removing it.org.htmlunit.corejs.javascript.ScriptableDOMMatrixReadOnly.toJSON()Returns a JSON representation of the DOMMatrixReadOnly object.org.htmlunit.corejs.javascript.ScriptableDOMPointReadOnly.toJSON()Returns a JSON representation of the DOMPointReadOnly object.org.htmlunit.corejs.javascript.ScriptableDOMRectReadOnly.toJSON()Returns a JSON representation of the DOMRectReadOnly object.Creates a new matrix being the result of the original matrix with a translation applied.org.htmlunit.corejs.javascript.ScriptableDOMTokenList.values()Returns an Iterator allowing to go through all keys contained in this object.org.htmlunit.corejs.javascript.ScriptableNodeList.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 JsxFunctionModifier and TypeMethodDescriptionstatic DataTransferItemDataTransferItemList.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 newDataTransferItemusing the specified data and adds it to the drag data list.voidDataTransferItemList.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.voidDataTransferItem.getAsString(Object callback) Invokes the given callback with the drag data item's string data if the item contains a plain Unicode string.voidDataTransferItemList.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 JsxFunctionModifier and TypeMethodDescriptionvoidEventTarget.addEventListener(String type, org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture) Registers an event listener on this event target.booleanEventTarget.dispatchEvent(Event event) Dispatches an event into the event system.voidCustomEvent.initCustomEvent(String type, boolean bubbles, boolean cancelable, Object detail) Initializes the custom event.voidInitializes this event.voidKeyboardEvent.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.voidMessageEvent.initMessageEvent(String type, boolean canBubble, boolean cancelable, Object data, String origin, String lastEventId, Window source, Object ports) Initializes an event object.voidMouseEvent.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.voidUIEvent.initUIEvent(String type, boolean bubbles, boolean cancelable, Object view, int detail) Implementation of the DOM Level 3 Event method for initializing the UI event.voidEvent.preventDefault()Cancels the event if it is cancelable, preventing the default action associated with it.voidEventTarget.removeEventListener(String type, org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture) Removes a previously registered event listener from this event target.voidEvent.stopImmediatePropagation()Prevents other listeners of the same event from being called.voidEvent.stopPropagation()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 JsxFunctionModifier and TypeMethodDescriptionorg.htmlunit.corejs.javascript.NativePromiseBlob.arrayBuffer()Returns a Promise that resolves with an ArrayBuffer containing the data in binary form.FileList.item(int index) Returns aFileobject representing the file at the specified index in the file list.voidFileReader.readAsArrayBuffer(Object object) voidFileReader.readAsDataURL(Object object) voidFileReader.readAsText(Object object, Object encoding) Returns a new Blob object which contains data from a subset of the blob on which it's called.voidFile.slice()Slices the file.Blob.stream()Returns a ReadableStream which, upon reading, returns the contents of the Blob.org.htmlunit.corejs.javascript.NativePromiseBlob.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 JsxFunctionModifier and TypeMethodDescriptionvoidGeolocation.clearWatch(int watchId) Clears the specified watch ID.voidGeolocation.getCurrentPosition(org.htmlunit.corejs.javascript.Function successCallback, org.htmlunit.corejs.javascript.Function errorCallback, Object options) Gets the current position.intGeolocation.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 JsxFunctionModifier and TypeMethodDescriptionvoidAdds a new item to the option collection.voidHTMLSelectElement.add(HTMLOptionElement newOptionObject, Object beforeOptionObject) Adds a new item to the list (optionally) before the specified item.voidHTMLElement.blur()Remove focus from this element.static StringHTMLMediaElement.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.booleanHTMLButtonElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLFieldSetElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLFormElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLInputElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLObjectElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLOutputElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLSelectElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.booleanHTMLTextAreaElement.checkValidity()Checks whether the element has any constraints and whether it satisfies them.voidHTMLElement.click()Click this element.voidCloses the dialog.voidHTMLDocument.close()JavaScript functionclose.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.voidHTMLTableElement.deleteCaption()Deletes this table's caption.voidHTMLTableRowElement.deleteCell(Object index) Deletes the cell at the specified index in the element's cells collection.voidHTMLTableElement.deleteRow(int rowIndex) Deletes the row at the specified index.voidHTMLTableSectionElement.deleteRow(int rowIndex) Deletes the row at the specified index.voidHTMLTableElement.deleteTFoot()Deletes this table's tfoot element.voidHTMLTableElement.deleteTHead()Deletes this table's thead element.booleanHTMLDocument.dispatchEvent(Event event) Dispatches an event into the event system (standards-conformant browsers only).voidHTMLElement.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, ornullif that element could not be found.HTMLTableRowElement.insertCell(Object index) Inserts a new cell at the specified index in the element's cells collection.Inserts a new row at the specified index in the element's row collection.Inserts a new row at the specified index in the element's row collection.Returns the item or items corresponding to the specified index or key.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.voidHTMLMediaElement.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 voidHTMLDocument.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.ScriptableRetrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).org.htmlunit.corejs.javascript.ScriptableRetrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).org.htmlunit.corejs.javascript.ScriptableReturns the element whose ID or name matches the specified value, from the collection.JavaScript function "open".voidHTMLMediaElement.pause()Pauses playback of the media.org.htmlunit.corejs.javascript.NativePromiseHTMLMediaElement.play()Begins playback of the media.voidHTMLOptionsCollection.remove(int index) Removes the option at the specified index.static voidHTMLSelectElement.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.voidHTMLFormElement.requestSubmit(Object submitter) Submits the form using the specified submit button.voidHTMLFormElement.reset()Resets this form.voidHTMLInputElement.select()Select this element.voidHTMLTextAreaElement.select()Selects this element.voidHTMLButtonElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLFieldSetElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLInputElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLObjectElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLOutputElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLSelectElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLTextAreaElement.setCustomValidity(String message) Sets the custom validity message for the element to the specified message.voidHTMLInputElement.setSelectionRange(int start, int end) Sets the selected portion of this input element.voidHTMLTextAreaElement.setSelectionRange(int start, int end) Sets the selected portion of this input element.voidHTMLDialogElement.show()Displays the dialog non-modally.voidHTMLDialogElement.showModal()Displays the dialog modally.voidHTMLFormElement.submit()Submits the form (at the end of the current script execution).Gets the data: URL representation of the canvas element.static voidHTMLDocument.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 voidHTMLDocument.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 JsxFunctionModifier and TypeMethodDescriptionvoidAssigns text to be segmented to the iterator.V8BreakIterator.breakType()Returns the type of the break.intV8BreakIterator.current()Returns the index of the current break.intV8BreakIterator.first()Returns the index of the first break and moves pointer to it.Formats a date according to the locale and formatting options of thisDateTimeFormatobject.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.intV8BreakIterator.next()Returns the index of the next break and moves pointer to it.org.htmlunit.corejs.javascript.ScriptableDateTimeFormat.resolvedOptions()Returns the resolved options for this Intl.DateTimeFormat object.org.htmlunit.corejs.javascript.ScriptableNumberFormat.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 JsxFunctionModifier and TypeMethodDescriptionvoidAudioNode.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.NativePromiseBaseAudioContext.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.NativePromiseMediaDevices.getUserMedia()Requests access to a media input device.voidAudioBufferSourceNode.start()Schedules playback of the audio data contained in the buffer, or to begin playback immediately.voidOfflineAudioContext.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 JsxFunctionModifier and TypeMethodDescriptionorg.htmlunit.corejs.javascript.ScriptablePerformance.getEntries()Returns a list of allPerformanceEntryobjects for the page.org.htmlunit.corejs.javascript.ScriptablePerformance.getEntriesByName()Returns a list of allPerformanceEntryobjects for the page with the given name.org.htmlunit.corejs.javascript.ScriptablePerformance.getEntriesByType()Returns a list ofPerformanceEntryobjects of the given type.doublePerformance.now()Returns a high-resolution timestamp representing the time elapsed since the time origin.org.htmlunit.corejs.javascript.ScriptablePerformanceNavigation.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 JsxFunctionModifier and TypeMethodDescriptionSVGSVGElement.createSVGMatrix()Creates a newSVGMatrix.SVGSVGElement.createSVGRect()Creates a newSVGRect.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.doubleSVGTextContentElement.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.doubleSVGPathElement.getTotalLength()Returns the total length of the path.SVGMatrix.inverse()Returns the inverse of this matrix.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 JsxFunctionModifier and TypeMethodDescriptionDecodes a string of data that has been encoded using Base64 encoding.Creates a Base64-encoded ASCII string from a string of binary data.static voidDedicatedWorkerGlobalScope.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.voidDedicatedWorkerGlobalScope.postMessage(Object message) Posts a message to theWorkerin the page's context.voidWorker.postMessage(Object message) Posts the provided message to the worker's execution context.static ObjectDedicatedWorkerGlobalScope.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 ObjectDedicatedWorkerGlobalScope.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.voidWorker.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 JsxFunctionModifier and TypeMethodDescriptionvoidXMLHttpRequest.abort()Cancels the current HTTP request.voidAppends a new value for an existing key, or adds the key if it does not already exist.voidRemoves the entry with the given name, if it exists.org.htmlunit.corejs.javascript.ScriptableFormData.entries()Returns an iterator over all name/value pairs contained in thisFormData.voidIterates over all key/value pairs in thisFormData, calling the given callback for each.Returns the first value associated with the given name.org.htmlunit.corejs.javascript.ScriptableReturns 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 byXSLTProcessor.setParameter(java.lang.String, java.lang.String, java.lang.Object), ornullif not set.XMLHttpRequest.getResponseHeader(String headerName) Returns the value of the specified HTTP response header.booleanReturns whether an entry with the given name exists.voidXSLTProcessor.importStylesheet(Node style) Imports the specified stylesheet into thisXSLTProcessorfor transformations.FormData.keys()Returns an iterator over all keys in thisFormData.voidXMLHttpRequest.open(String method, Object urlParam, Object asyncParam, Object user, Object password) Initializes the request by specifying the destination URL, method, and other optional attributes.voidXMLHttpRequest.overrideMimeType(String mimeType) Overrides the MIME type returned by the server.voidSends 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.voidSets a new value for an existing key, replacing all existing values for that key, or adds the key if it does not already exist.voidXSLTProcessor.setParameter(String namespaceURI, String localName, Object value) Sets a parameter to be used in subsequent transformations with thisXSLTProcessor.voidXMLHttpRequest.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 viaXSLTProcessor.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 thisFormData. -
Uses of JsxFunction in org.htmlunit.javascript.proxyautoconfig
Methods in org.htmlunit.javascript.proxyautoconfig with annotations of type JsxFunctionModifier and TypeMethodDescriptionstatic longProxyAutoConfig.convertAddr(String ip) Concatenates the four dot-separated bytes into one 4-byte word and converts it to decimal.static booleanProxyAutoConfig.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 booleanProxyAutoConfig.dnsDomainIs(String host, String domain) Returns true if the domain of hostname matches.static intProxyAutoConfig.dnsDomainLevels(String host) Returns the number (integer) of DNS domain levels (number of dots) in the hostname.static StringProxyAutoConfig.dnsResolve(String host) Resolves the given DNS hostname into an IP address, and returns it in the dot separated format as a string.static booleanReturns true if the IP address of the host matches the specified IP address pattern.static booleanProxyAutoConfig.isPlainHostName(String host) Returns true if there is no domain name in the hostname (no dots).static booleanProxyAutoConfig.isResolvable(String host) Tries to resolve the hostname.static booleanProxyAutoConfig.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 StringProxyAutoConfig.myIpAddress()Returns the IP address of the local host, as a string in the dot-separated integer format.static booleanProxyAutoConfig.shExpMatch(String str, String shexp) Matches the specified string against a shell expression, not regular expression.static booleanProxyAutoConfig.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 booleanProxyAutoConfig.weekdayRange(String wd1, Object wd2, Object gmt) Checks if today is included in the specified range.