Uses of Class
org.htmlunit.javascript.configuration.JsxFunction
-
Packages that use JsxFunction Package Description org.htmlunit.javascript.host Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.canvas Implementations of the Canvas JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.crypto Implementations of the Crypto JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.css Implementations of the CSS JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.dom Implementations of the DOM JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.event Implementations of the JavaScript host objects for events - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.file Implementations of the File JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.geo Implementations of the Geolocation JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.html Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.intl Implementations of the Internationalization JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.media Implementations of the JavaScript host media objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.performance Implementations of the Performance JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.svg Implementations of the Scalable Vector Graphics JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.worker Implementations of the Web Workers JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.xml Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.proxyautoconfig 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
External. addSearchProvider()
Empty implementation.static void
Element. after(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.void
Window. alert(java.lang.Object message)
The JavaScript functionalert()
.static void
Element. append(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Inserts a set of Node objects or string objects after the last child of the Element.void
URLSearchParams. append(java.lang.String name, java.lang.String value)
The append() method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.java.lang.String
Window. atob(java.lang.String encodedData)
Decodes a string of data which has been encoded using base-64 encoding.void
History. back()
JavaScript function "back".static void
Element. before(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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
Window. blur()
Removes focus from this element.java.lang.String
Window. btoa(java.lang.String stringToEncode)
Creates a base-64 encoded ASCII string from a string of binary data.void
Window. cancelAnimationFrame(java.lang.Object requestId)
Remove the callback from the list of animationFrames.void
Window. captureEvents(java.lang.String type)
Does nothing special anymore.void
Storage. clear()
Clears all items.void
Window. clearInterval(int intervalID)
Cancels the interval previously started using theWindow.setInterval(Context, Scriptable, Scriptable, Object[], Function)
method.void
Window. clearTimeout(int timeoutId)
Cancels a time-out previously set with theWindow.setTimeout(Context, Scriptable, Scriptable, Object[], Function)
method.void
WebSocket. close(java.lang.Object code, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
boolean
Window. confirm(java.lang.String message)
The JavaScript functionconfirm
.java.lang.String
TextDecoder. decode(java.lang.Object buffer)
void
URLSearchParams. delete(java.lang.String name)
The delete() method of the URLSearchParams interface deletes the given search parameter and its associated value, from the list of all search parameters.void
Window. dump(java.lang.String message)
Logs messages to the browser's standard output (stdout).org.htmlunit.corejs.javascript.typedarrays.NativeUint8Array
TextEncoder. encode(java.lang.Object toEncode)
java.lang.Object
URLSearchParams. entries()
The URLSearchParams.entries() method returns an iterator allowing to go through all key/value pairs contained in this object.boolean
Window. find(java.lang.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(java.lang.Object callback)
The URLSearchParams.forEach() method allows iteration through all key/value pairs contained in this object via a callback function.void
History. forward()
JavaScript function "forward".java.lang.String
URLSearchParams. get(java.lang.String name)
The get() method of the URLSearchParams interface returns the first value associated to the given search parameter.org.htmlunit.corejs.javascript.Scriptable
URLSearchParams. getAll(java.lang.String name)
The getAll() method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.java.lang.String
Element. getAttribute(java.lang.String attributeName)
HtmlUnitScriptable
Element. getAttributeNode(java.lang.String name)
Retrieves an attribute node by name.HtmlUnitScriptable
Element. getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
Returns the specified attribute.java.lang.String
Element. getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Gets the specified attribute.ClientRect
Element. getBoundingClientRect()
Retrieves an object that specifies the bounds of a collection of TextRectangle objects.ClientRectList
Element. getClientRects()
Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client.ComputedCSSStyleDeclaration
Window. getComputedStyle(java.lang.Object element, java.lang.String pseudoElement)
Returns computed style of the element.HTMLCollection
Element. getElementsByClassName(java.lang.String className)
Returns all the descendant elements with the specified class.HTMLCollection
Element. getElementsByTagName(java.lang.String tagName)
Returns all the descendant elements with the specified tag name.java.lang.Object
Element. getElementsByTagNameNS(java.lang.Object namespaceURI, java.lang.String localName)
Returns a list of elements with the given tag name belonging to the given namespace.java.lang.Object
Storage. getItem(java.lang.String key)
Returns the value of the specified key.HtmlUnitScriptable
NamedNodeMap. getNamedItem(java.lang.String name)
Gets the specified attribute.Node
NamedNodeMap. getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
Gets the specified attribute.Selection
Window. getSelection()
Returns the current selection.void
History. go(int relativeIndex)
JavaScript function "go".boolean
URLSearchParams. has(java.lang.String name)
The has() method of the URLSearchParams interface returns a Boolean that indicates whether a parameter with the specified name exists.boolean
Element. hasAttribute(java.lang.String name)
Returns true when an attribute with a given name is specified on this element or has a default value.boolean
Element. hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Test for attribute.boolean
Element. hasAttributes()
Returns true when the current element has any attributes or not.java.lang.String
Element. innerHTML()
ThegetInnerHTML
function.java.lang.Object
Element. insertAdjacentElement(java.lang.String where, java.lang.Object insertedElement)
Inserts the given element into the element at the location.void
Element. insertAdjacentHTML(java.lang.String position, java.lang.String text)
Parses the given text as HTML or XML and inserts the resulting nodes into the tree in the position given by the position argument.void
Element. insertAdjacentText(java.lang.String where, java.lang.String text)
Inserts the given text into the element at the specified location.java.lang.Object
External. isSearchProviderInstalled()
Empty implementation.ClientRect
ClientRectList. item(int index)
Returns the item at the specified index.HtmlUnitScriptable
NamedNodeMap. item(int index)
Returns the item at the specified index.java.lang.Object
SimpleArray. item(int index)
Returns the item at the given index.boolean
Navigator. javaEnabled()
Indicates if Java is enabled.java.lang.String
URL. jsToString()
Returns the text of the URL.java.lang.String
URLSearchParams. jsToString()
java.lang.String
Storage. key(int index)
Returns the key of the specified index.java.lang.Object
URLSearchParams. keys()
The URLSearchParams.keys() method returns an iterator allowing to go through all keys contained in this object.java.lang.Object
FontFaceSet. load(java.lang.String font, java.lang.String text)
static boolean
Element. matches(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Returns true if the element would be selected by the specified selector string; otherwise, returns false.MediaQueryList
Window. matchMedia(java.lang.String mediaQueryString)
Returns a new MediaQueryList object representing the parsed results of the specified media query string.void
Window. moveBy(int x, int y)
Does nothing.void
Window. moveTo(int x, int y)
Does nothing.static boolean
Element. mozMatchesSelector(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Returns true if the element would be selected by the specified selector string; otherwise, returns false.java.lang.Object
SimpleArray. namedItem(java.lang.String name)
Returns the item at the given index.WindowProxy
Window. open(java.lang.Object url, java.lang.Object name, java.lang.Object features, java.lang.Object replace)
Opens a new window.void
MessagePort. postMessage(java.lang.String message, java.lang.Object transfer)
Posts a message.static void
Window. postMessage(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Inserts a set of Node objects or string objects before the first child of the Element.void
Window. print()
Prints the current page.java.lang.String
Window. prompt(java.lang.String message, java.lang.Object defaultValue)
The JavaScript functionprompt
.void
History. pushState(java.lang.Object object, java.lang.String title, java.lang.Object url)
Pushes a state.Node
Element. querySelector(java.lang.String selectors)
Returns the first element within the document that matches the specified group of selectors.NodeList
Element. querySelectorAll(java.lang.String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector within the supplied selector strings.void
PluginArray. refresh(boolean reloadDocuments)
Current implementation does nothing.void
Element. releaseCapture()
Mock for the moment.void
Window. releaseEvents(java.lang.String type)
Does nothing special anymore.void
Element. remove()
Removes the DOM node from its parent.void
Element. removeAttribute(java.lang.String name)
Removes the specified attribute.void
Element. removeAttributeNode(Attr attribute)
Removes the specified attribute.void
Element. removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Removes the specified attribute.void
Storage. removeItem(java.lang.String key)
Removes the specified key.void
NamedNodeMap. removeNamedItem(java.lang.String name)
Removes the specified attribute.Attr
NamedNodeMap. removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
Removes the specified attribute.static void
Element. replaceChildren(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Replaces the existing children of a Node with a specified new set of children.void
History. replaceState(java.lang.Object object, java.lang.String title, java.lang.Object url)
Replaces a state.static void
Element. replaceWith(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Replaces the node with a set of Node or DOMString objects.int
Window. requestAnimationFrame(java.lang.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()
Implement thescroll()
JavaScript function but don't actually do anything.void
Window. scroll(int x, int y)
Scrolls to the specified location on the page.void
Element. scrollBy()
Implement thescrollBy()
JavaScript function but don't actually do anything.void
Window. scrollBy(int x, int y)
Scrolls the window content the specified distance.void
Window. scrollByLines(int lines)
Scrolls the window content down by the specified number of lines.void
Window. scrollByPages(int pages)
Scrolls the window content down by the specified number of pages.void
Element. scrollIntoView()
Implement thescrollIntoView()
JavaScript function but don't actually do anything.void
Element. scrollIntoViewIfNeeded()
Implement thescrollIntoViewIfNeeded()
JavaScript function but don't actually do anything.void
Element. scrollTo()
Implement thescrollTo()
JavaScript function but don't actually do anything.void
Window. scrollTo(int x, int y)
Scrolls to the specified location on the page.void
WebSocket. send(java.lang.Object content)
Transmits data to the server over the WebSocket connection.void
URLSearchParams. set(java.lang.String name, java.lang.String value)
The set() method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.void
Element. setAttribute(java.lang.String name, java.lang.String value)
Sets an attribute.Attr
Element. setAttributeNode(Attr newAtt)
Sets the attribute node for the specified attribute.void
Element. setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)
Sets the specified attribute.void
Element. setCapture(boolean retargetToElement)
Mock for the moment.static java.lang.Object
Window. setInterval(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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(java.lang.String key, java.lang.String data)
Sets the item value.void
NamedNodeMap. setNamedItem(Node node)
Sets the specified attribute.void
NamedNodeMap. setNamedItemNS(Node node)
Sets the specified attribute.static java.lang.Object
Window. setTimeout(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Sets a chunk of JavaScript to be invoked at some specified time later.void
Window. stop()
Should implement the stop() function on the window object.boolean
Navigator. taintEnabled()
Returnsfalse
always as data tainting support is not enabled in HtmlUnit.boolean
Element. toggleAttribute(java.lang.String name, java.lang.Object force)
ThetoggleAttribute()
method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element.java.lang.String
URL. toJSON()
java.lang.Object
URLSearchParams. values()
The URLSearchParams.values() method returns an iterator allowing to go through all values contained in this object.static boolean
Element. webkitMatchesSelector(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Returns true if the element would be selected by the specified selector string; otherwise, returns false. -
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, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Returns theImageData
object.CanvasGradient
CanvasRenderingContext2D. createLinearGradient(double x0, double y0, double r0, double x1, java.lang.Object y1, java.lang.Object r1)
Creates linear gradient.void
CanvasRenderingContext2D. createPattern()
Creates a pattern.CanvasGradient
CanvasRenderingContext2D. createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
Creates a gradient.void
IntersectionObserver. disconnect()
Disconnects.void
CanvasRenderingContext2D. drawImage(java.lang.Object image, int sx, int sy, java.lang.Object sWidth, java.lang.Object sHeight, java.lang.Object dx, java.lang.Object dy, java.lang.Object dWidth, java.lang.Object dHeight)
Draws images onto the canvas.void
CanvasRenderingContext2D. ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, boolean anticlockwise)
Paints the specified ellipse.void
CanvasRenderingContext2D. fill()
Fills the shape.void
CanvasRenderingContext2D. fillRect(int x, int y, int w, int h)
Paints the specified rectangular area.void
CanvasRenderingContext2D. fillText(java.lang.String text, double x, double y)
Fills a given text at the given (x, y) position.ImageData
CanvasRenderingContext2D. getImageData(int sx, int sy, int sw, int sh)
Returns theImageData
object.void
CanvasRenderingContext2D. getLineDash()
Dummy placeholder.void
CanvasRenderingContext2D. getLineData()
Dummy placeholder.void
CanvasRenderingContext2D. isPointInPath()
Dummy placeholder.void
CanvasRenderingContext2D. lineTo(double x, double y)
Connect the last point to the given point.TextMetrics
CanvasRenderingContext2D. measureText(java.lang.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, java.lang.Object dirtyX, java.lang.Object dirtyY, java.lang.Object dirtyWidth, java.lang.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(java.lang.Object x, java.lang.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(int x, int y, int w, int h)
Strokes the specified rectangular area.void
CanvasRenderingContext2D. strokeText()
Dummy placeholder.java.lang.Object
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(int x, int 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 java.lang.Object
SubtleCrypto. decrypt()
java.lang.Object
SubtleCrypto. deriveBits()
java.lang.Object
SubtleCrypto. deriveKey()
java.lang.Object
SubtleCrypto. digest()
java.lang.Object
SubtleCrypto. encrypt()
java.lang.Object
SubtleCrypto. exportKey()
java.lang.Object
SubtleCrypto. generateKey()
org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView<?>
Crypto. getRandomValues(org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView<?> array)
Fills array with random values.java.lang.Object
SubtleCrypto. importKey()
java.lang.String
Crypto. randomUUID()
java.lang.Object
SubtleCrypto. sign()
java.lang.Object
SubtleCrypto. unwrapKey()
java.lang.Object
SubtleCrypto. verify()
java.lang.Object
SubtleCrypto. wrapKey()
-
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(java.lang.Object listener)
Adds thelistener
event handler for this element.int
CSSStyleSheet. addRule(java.lang.String selector, java.lang.String rule)
Adds a new rule.void
CSSGroupingRule. deleteRule(int position)
Deletes an existing rule.void
CSSStyleSheet. deleteRule(int position)
Deletes an existing rule.java.lang.String
CSSStyleDeclaration. getPropertyPriority(java.lang.String name)
Gets the value of the specified property of the style.java.lang.String
CSSStyleDeclaration. getPropertyValue(java.lang.String name)
Gets the value of the specified property of the style.int
CSSGroupingRule. insertRule(java.lang.String rule, java.lang.Object position)
Inserts a new rule.int
CSSStyleSheet. insertRule(java.lang.String rule, int position)
Inserts a new rule.java.lang.Object
CSSRuleList. item(int index)
Returns the item in the given index.java.lang.Object
CSSStyleDeclaration. item(int index)
Returns the item in the given index.java.lang.String
MediaList. item(int index)
Returns the item or items corresponding to the specified index or key.java.lang.Object
StyleSheetList. item(int index)
Returns the style sheet at the specified index.boolean
StyleMedia. matchMedium(java.lang.String media)
Returns whether the specified media is supported by the object that displays the document object.void
MediaQueryList. removeListener(java.lang.Object listener)
Removes thelistener
event handler for this element.java.lang.String
CSSStyleDeclaration. removeProperty(java.lang.Object name)
Removes the named property.void
CSSStyleSheet. removeRule(int position)
Deletes an existing rule.void
CSSStyleDeclaration. setProperty(java.lang.String name, java.lang.Object value, java.lang.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 void
DOMTokenList. add(java.lang.String token)
Adds the specified token to the underlying string.void
Selection. addRange(Range range)
Adds a range to the selection.java.lang.Object
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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.java.lang.Object
Node. appendChild(java.lang.Object childObject)
Adds a DOM node to the node.void
CharacterData. appendData(java.lang.String arg)
Append a string to character data.static void
CharacterData. before(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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(java.lang.String type)
Does nothing special anymore.void
Document. clear()
Does...HtmlUnitScriptable
Range. cloneContents()
Returns a clone of the range in a document fragment.java.lang.Object
Node. cloneNode(boolean deep)
Clones this node.java.lang.Object
Range. cloneRange()
Returns a clone of the range.void
Document. close()
JavaScript functionclose
.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.java.lang.Object
Range. compareBoundaryPoints(int how, Range sourceRange)
Compares the boundary points of two Ranges.int
Node. compareDocumentPosition(java.lang.Object node)
Compares the positions of this node and the provided node within the document.boolean
Document. contains(java.lang.Object element)
Checks whether the given element is contained within this object.boolean
DOMTokenList. contains(java.lang.String token)
Checks if the specified token is contained in the underlying string.boolean
Node. contains(java.lang.Object element)
Checks whether the given element is contained within this object.Attr
Document. createAttribute(java.lang.String attributeName)
Creates a new HTML attribute with the specified name.java.lang.Object
Document. createCDATASection(java.lang.String data)
Creates a new createCDATASection.java.lang.Object
Document. createComment(java.lang.String comment)
Creates a new Comment.HtmlUnitScriptable
Range. createContextualFragment(java.lang.String valueAsString)
Parses an HTML snippet.XMLDocument
DOMImplementation. createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype)
Creates anXMLDocument
.java.lang.Object
Document. createDocumentFragment()
Creates a new document fragment.java.lang.Object
Document. createElement(java.lang.String tagName)
Creates a new element with the given tag name.java.lang.Object
Document. createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
Creates a new HTML element with the given tag name, and name.Event
Document. createEvent(java.lang.String eventType)
Implementation of theDocumentEvent
interface'sDocumentEvent.createEvent(String)
method.HTMLDocument
DOMImplementation. createHTMLDocument(java.lang.Object titleObj)
Creates anHTMLDocument
.NodeIterator
Document. createNodeIterator(Node root, int whatToShow, org.htmlunit.corejs.javascript.Scriptable filter)
Returns a new NodeIterator object.XPathNSResolver
Document. createNSResolver(Node nodeResolver)
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.XPathNSResolver
XPathEvaluator. createNSResolver(Node nodeResolver)
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.java.lang.Object
Document. createProcessingInstruction(java.lang.String target, java.lang.String data)
Creates a new ProcessingInstruction.Range
Document. createRange()
Creates and returns a new range.java.lang.Object
Document. createTextNode(java.lang.String newData)
Create a new DOM text node with the given data.java.lang.Object
Document. createTreeWalker(Node root, double whatToShow, org.htmlunit.corejs.javascript.Scriptable filter, boolean expandEntityReferences)
Creates and returns a new TreeWalker.void
Range. deleteContents()
Deletes the contents of the range.void
CharacterData. deleteData(int offset, int count)
Delete characters from character data.void
NodeIterator. detach()
This operation is a no-op.void
Range. detach()
Releases Range from use to improve performance.void
MutationObserver. disconnect()
Stops the MutationObserver instance from receiving notifications of DOM mutations.java.lang.Object
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
NodeList. entries()
Returns an Iterator allowing to go through all key/value pairs contained in this object.XPathResult
Document. evaluate(java.lang.String expression, Node contextNode, java.lang.Object resolver, int type, java.lang.Object result)
Evaluates an XPath expression string and returns a result of the specified type if possible.XPathResult
XPathEvaluator. evaluate(java.lang.String expression, java.lang.Object contextNodeObj, java.lang.Object resolver, int type, java.lang.Object result)
Evaluates an XPath expression string and returns a result of the specified type if possible.boolean
Document. execCommand(java.lang.String cmd, boolean userInterface, java.lang.Object value)
Executes a command.void
Selection. extend(Node parentNode, int offset)
Moves the focus of the selection to a specified point.HtmlUnitScriptable
Range. extractContents()
Moves this range's contents from the document tree into a document fragment.Node
TreeWalker. firstChild()
Moves the TreeWalker to the first visible child of the current node, and returns the new node.void
NodeList. forEach(java.lang.Object callback)
Calls thecallback
given in parameter once for each value pair in the list, in insertion order.ClientRect
Range. getBoundingClientRect()
Returns an object that bounds the contents of the range.ClientRectList
Range. getClientRects()
Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client.HtmlUnitScriptable
Document. getElementById(java.lang.String id)
Returns the element with the specified ID, as long as it is an HTML element;null
otherwise.HtmlUnitScriptable
DocumentFragment. getElementById(java.lang.Object id)
Returns the element with the specified ID, ornull
if that element could not be found.HTMLCollection
Document. getElementsByClassName(java.lang.String className)
Returns all the descendant elements with the specified class name.NodeList
Document. getElementsByName(java.lang.String elementName)
Returns all HTML elements that have aname
attribute with the specified value.HTMLCollection
Document. getElementsByTagName(java.lang.String tagName)
Returns all the descendant elements with the specified tag name.java.lang.Object
Document. getElementsByTagNameNS(java.lang.Object namespaceURI, java.lang.String localName)
Returns a list of elements with the given tag name belonging to the given namespace.Range
Selection. getRangeAt(int index)
Returns the range at the specified index.java.lang.Object
Node. getRootNode()
Returns the owner document.Selection
Document. getSelection()
Returns the current selection.boolean
Node. hasChildNodes()
Returns whether this node has any children.boolean
DOMImplementation. hasFeature(java.lang.String feature, java.lang.String version)
Test if the DOM implementation implements a specific feature.boolean
Document. hasFocus()
Returnsfalse
if the active element in the document has no focus;true
if the active element in the document has focus.HtmlUnitScriptable
Document. importNode(Node importedNode, boolean deep)
Imports a node from another document to this document.static java.lang.Object
Node. insertBefore(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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, java.lang.String arg)
Insert a string into character data.void
Range. insertNode(Node newNode)
Inserts a new node at the beginning of the range.boolean
Node. isEqualNode(Node other)
Check if 2 nodes are equals.boolean
Node. isSameNode(java.lang.Object other)
This method provides a way to determine whether two Node references returned by the implementation reference the same object.java.lang.Object
DOMTokenList. item(int index)
Returns the item at the specified index.java.lang.Object
NodeList. item(java.lang.Object index)
Returns the item or items corresponding to the specified index or key.Node
XPathResult. iterateNext()
Iterates and returns the next node from the node set ornull
if there are no more nodes.java.lang.String
Range. jsToString()
Returns the text of the Range.java.lang.String
Selection. jsToString()
org.htmlunit.corejs.javascript.Scriptable
NodeList. keys()
Returns an Iterator allowing to go through all keys contained in this object.Node
TreeWalker. lastChild()
Moves the TreeWalker to the last visible child of the current node, and returns the new node.java.lang.String
XPathNSResolver. lookupNamespaceURI(java.lang.String prefix)
Look up the namespace URI associated to the given namespace prefix.Node
NodeIterator. nextNode()
Returns the next Node in the document, or null if there are none.Node
TreeWalker. nextNode()
Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new node.Node
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 theMutationObserver
instance to receive notifications of DOM mutations on the specified node.Node
TreeWalker. parentNode()
Moves to and returns the closest visible ancestor node of the current node.Document
DOMParser. parseFromString(java.lang.String str, java.lang.Object type)
Parses the given Unicode string into a DOM document.Node
NodeIterator. previousNode()
Returns the previous Node in the document, or null if there are none.Node
TreeWalker. previousNode()
Moves the TreeWalker to the previous visible node in document order relative to the current node, and returns the new node.Node
TreeWalker. previousSibling()
Moves the TreeWalker to the previous sibling of the current node, and returns the new node.boolean
Document. queryCommandEnabled(java.lang.String cmd)
Indicates if the command can be successfully executed usingexecCommand
, given the current state of the document.boolean
Document. queryCommandSupported(java.lang.String cmd)
Indicates if the command is supported.Node
Document. querySelector(java.lang.String selectors)
Returns the first element within the document that matches the specified group of selectors.Node
DocumentFragment. querySelector(java.lang.String selectors)
Returns the first element within the document that matches the specified group of selectors.NodeList
Document. querySelectorAll(java.lang.String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector within the supplied selector strings.NodeList
DocumentFragment. querySelectorAll(java.lang.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(java.lang.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.void
DOMTokenList. remove(java.lang.String token)
Removes the specified token from the underlying string.void
Selection. removeAllRanges()
Removes all ranges from the selection.java.lang.Object
Node. removeChild(java.lang.Object childObject)
Removes a DOM node from this node.void
Selection. removeRange(Range range)
Removes a range from the selection.java.lang.Object
Node. replaceChild(java.lang.Object newChildObject, java.lang.Object oldChildObject)
Replaces a child DOM node with another DOM node.void
CharacterData. replaceData(int offset, int count, java.lang.String arg)
Replace characters of character data with a string.static void
CharacterData. replaceWith(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Replaces the node wit a set of Node or DOMString objects.static void
DocumentType. replaceWith(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Replaces the node wit a set of Node or DOMString objects.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.Node
XPathResult. snapshotItem(int index)
Returns the indexth item in the snapshot collection.java.lang.Object
Text. splitText(int offset)
Split a Text node in two.java.lang.String
CharacterData. substringData(int offset, int count)
Extract a substring from character data.void
Range. surroundContents(Node newNode)
Surrounds the contents of the range in a new node.org.htmlunit.corejs.javascript.Scriptable
MutationObserver. takeRecords()
Empties the MutationObserver instance's record queue and returns what was in there.boolean
DOMTokenList. toggle(java.lang.String token)
Toggle the token, by adding or removing.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.event
Methods in org.htmlunit.javascript.host.event with annotations of type JsxFunction Modifier and Type Method Description void
EventTarget. addEventListener(java.lang.String type, org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
Allows the registration of event listeners on the event target.boolean
EventTarget. dispatchEvent(Event event)
Dispatches an event into the event system (standards-conformant browsers only).void
CustomEvent. initCustomEvent(java.lang.String type, boolean bubbles, boolean cancelable, java.lang.Object detail)
Implementation of the DOM Level 2 Event method for initializing the mouse event.void
Event. initEvent(java.lang.String type, boolean bubbles, boolean cancelable)
Initializes this event.void
HashChangeEvent. initHashChangeEvent(java.lang.String type, boolean bubbles, boolean cancelable, java.lang.String oldURL, java.lang.String newURL)
Initializes this event.void
KeyboardEvent. initKeyboardEvent(java.lang.String type, boolean bubbles, boolean cancelable, java.lang.Object view, java.lang.String key, int location, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey)
Implementation of the DOM Level 3 Event method for initializing the key event.void
MessageEvent. initMessageEvent(java.lang.String type, boolean canBubble, boolean cancelable, java.lang.Object data, java.lang.String origin, java.lang.String lastEventId, Window source, java.lang.Object ports)
Initializes an event object.void
MouseEvent. initMouseEvent(java.lang.String type, boolean bubbles, boolean cancelable, java.lang.Object view, int detail, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int button, java.lang.Object relatedTarget)
Implementation of the DOM Level 2 Event method for initializing the mouse event.void
UIEvent. initUIEvent(java.lang.String type, boolean bubbles, boolean cancelable, java.lang.Object view, int detail)
Implementation of the DOM Level 3 Event method for initializing the UI event.void
Event. preventDefault()
If, during any stage of event flow, this method is called the event is canceled.void
EventTarget. removeEventListener(java.lang.String type, org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
Allows the removal of event listeners on the event target.void
Event. stopImmediatePropagation()
Prevents other listeners of the same event from being called.void
Event. 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 JsxFunction Modifier and Type Method Description java.lang.Object
Blob. arrayBuffer()
File
FileList. item(int index)
Returns aFile
object representing the file at the specified index in the file list.void
FileReader. readAsArrayBuffer(java.lang.Object object)
void
FileReader. readAsDataURL(java.lang.Object object)
void
FileReader. readAsText(java.lang.Object object, java.lang.Object encoding)
Blob
Blob. slice(java.lang.Object start, java.lang.Object end, java.lang.Object contentType)
void
File. slice()
Slices the file.ReadableStream
Blob. stream()
java.lang.Object
Blob. text()
-
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, java.lang.Object options)
Gets the current position.int
Geolocation. watchPosition(org.htmlunit.corejs.javascript.Function successCallback, java.lang.Object errorCallback, java.lang.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(java.lang.Object newOptionObject, java.lang.Object beforeOptionObject)
Adds a new item to the option collection.void
HTMLSelectElement. add(HTMLOptionElement newOptionObject, java.lang.Object beforeOptionObject)
Adds a new item to the list (optionally) before the specified item.void
HTMLElement. blur()
Remove focus from this element.java.lang.String
HTMLMediaElement. canPlayType(java.lang.String type)
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(java.lang.Object returnValue)
Closes the dialog.void
HTMLDocument. close()
JavaScript functionclose
.java.lang.Object
HTMLTableElement. createCaption()
If this table does not have a caption, this method creates an empty table caption, adds it to the table and then returns it.java.lang.Object
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.java.lang.Object
HTMLTableElement. createTFoot()
If this table does not have a tfoot element, this method creates an empty tfoot element, adds it to the table and then returns it.java.lang.Object
HTMLTableElement. createTHead()
If this table does not have a thead element, this method creates an empty thead element, adds it to the table and then returns it.void
HTMLTableElement. deleteCaption()
Deletes this table's caption.void
HTMLTableRowElement. deleteCell(java.lang.Object index)
Deletes the cell at the specified index in the element's cells collection.void
RowContainer. deleteRow(int rowIndex)
Deletes the row at the specified index.void
HTMLTableElement. deleteTFoot()
Deletes this table's tfoot element.void
HTMLTableElement. deleteTHead()
Deletes this table's thead element.boolean
HTMLDocument. dispatchEvent(Event event)
Dispatches an event into the event system (standards-conformant browsers only).void
HTMLElement. focus()
Sets the focus to this element.java.lang.Object
HTMLCanvasElement. getContext(java.lang.String contextId)
Gets the context.HtmlUnitScriptable
HTMLDocument. getElementById(java.lang.String id)
Returns the element with the specified ID, ornull
if that element could not be found.java.lang.Object
HTMLTableRowElement. insertCell(java.lang.Object index)
Inserts a new cell at the specified index in the element's cells collection.java.lang.Object
RowContainer. insertRow(java.lang.Object index)
Inserts a new row at the specified index in the element's row collection.java.lang.Object
HTMLCollection. item(java.lang.Object index)
Returns the item or items corresponding to the specified index or key.java.lang.Object
HTMLOptionsCollection. item(int index)
Returns the object at the specified index.java.lang.Object
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.java.lang.Object
HTMLCollection. namedItem(java.lang.String name)
Retrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).java.lang.Object
HTMLDocument. open(java.lang.Object url, java.lang.Object name, java.lang.Object features, java.lang.Object replace)
JavaScript function "open".void
HTMLMediaElement. pause()
Pauses playback of the media.java.lang.Object
HTMLMediaElement. play()
Begins playback of the media.void
HTMLOptionsCollection. remove(int index)
Removes the option at the specified index.void
HTMLSelectElement. remove(int index)
Removes option at the specified index.void
HTMLFormElement. requestSubmit(java.lang.Object submitter)
Submits the form by submitted using a specific submit button.void
HTMLFormElement. reset()
Resets this form.void
HTMLInputElement. select()
Select this element.void
HTMLTextAreaElement. select()
Selects this element.void
HTMLButtonElement. setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
HTMLFieldSetElement. setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
HTMLInputElement. setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
HTMLObjectElement. setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
HTMLOutputElement. setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
HTMLSelectElement. setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
HTMLTextAreaElement. setCustomValidity(java.lang.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 modelessly.void
HTMLDialogElement. showModal()
Displays the dialog modal.void
HTMLFormElement. submit()
Submits the form (at the end of the current script execution).java.lang.String
HTMLCanvasElement. toDataURL(java.lang.Object type)
Get the data: URL representation of the Canvas element.static void
HTMLDocument. write(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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(java.lang.String text)
Assigns text to be segmented to the iterator.java.lang.String
V8BreakIterator. breakType()
Returns the type of the break.int
V8BreakIterator. current()
Returns the index of the current break.int
V8BreakIterator. first()
Returns the index of the first break and moves pointer to it.java.lang.String
DateTimeFormat. format(java.lang.Object object)
Formats a date according to the locale and formatting options of thisDateTimeFormat
object.java.lang.String
NumberFormat. format(java.lang.Object object)
Formats a number according to the locale and formatting options of this Intl.NumberFormat object.int
V8BreakIterator. next()
Returns the index of the next break and moves pointer to it.org.htmlunit.corejs.javascript.Scriptable
DateTimeFormat. resolvedOptions()
org.htmlunit.corejs.javascript.Scriptable
NumberFormat. resolvedOptions()
java.lang.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.AudioBuffer
BaseAudioContext. createBuffer()
AudioBufferSourceNode
BaseAudioContext. createBufferSource()
GainNode
BaseAudioContext. createGain()
java.lang.Object
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.java.lang.Object
MediaDevices. getUserMedia()
void
AudioBufferSourceNode. start()
Schedules playback of the audio data contained in the buffer, or to begin playback immediately.void
OfflineAudioContext. startRendering()
-
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()
org.htmlunit.corejs.javascript.Scriptable
Performance. getEntriesByName()
org.htmlunit.corejs.javascript.Scriptable
Performance. getEntriesByType()
double
Performance. now()
java.lang.Object
PerformanceNavigation. toJSON()
ThetoJSON
function. -
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 SVGMatrix
SVGSVGElement. createSVGMatrix()
Creates a newSVGMatrix
.SVGRect
SVGSVGElement. createSVGRect()
Creates a newSVGRect
.SVGMatrix
SVGMatrix. flipX()
Transforms the matrix.SVGMatrix
SVGMatrix. flipY()
Transforms the matrix.SVGRect
SVGGElement. getBBox()
Returns the bounding box, in current user space, of the geometry of all contained graphics elements.SVGRect
SVGGeometryElement. getBBox()
Returns the bounding box, in current user space, of the geometry of all contained graphics elements.double
SVGTextContentElement. getComputedTextLength()
SVGMatrix
SVGSVGElement. getScreenCTM()
Creates a newSVGMatrix
.double
SVGPathElement. getTotalLength()
SVGMatrix
SVGMatrix. inverse()
Transforms the matrix.SVGMatrix
SVGMatrix. multiply(SVGMatrix by)
Transforms the matrix.SVGMatrix
SVGMatrix. rotate(double angle)
Rotates the matrix.SVGMatrix
SVGMatrix. rotateFromVector(double x, double y)
Transforms the matrix.SVGMatrix
SVGMatrix. scale(double factor)
Transforms the matrix.SVGMatrix
SVGMatrix. scaleNonUniform(double factorX, double factorY)
Transforms the matrix.SVGMatrix
SVGMatrix. skewX(double angle)
Transforms the matrix.SVGMatrix
SVGMatrix. skewY(double angle)
Transforms the matrix.SVGMatrix
SVGMatrix. translate(double x, double y)
Translates the matrix. -
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 java.lang.String
DedicatedWorkerGlobalScope. atob(java.lang.String encodedData)
Decodes a string of data which has been encoded using base-64 encoding.java.lang.String
DedicatedWorkerGlobalScope. btoa(java.lang.String stringToEncode)
Creates a base-64 encoded ASCII string from a string of binary data.static void
DedicatedWorkerGlobalScope. importScripts(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function funObj)
Import external script(s).void
DedicatedWorkerGlobalScope. postMessage(java.lang.Object message)
Posts a message to theWorker
in the page's context.void
Worker. postMessage(java.lang.Object message)
Post the provided message to the WebWorker execution.static java.lang.Object
DedicatedWorkerGlobalScope. setInterval(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.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.static java.lang.Object
DedicatedWorkerGlobalScope. setTimeout(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
Sets a chunk of JavaScript to be invoked at some specified time later.void
Worker. terminate()
Immediately terminates the Worker. -
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(java.lang.String name, java.lang.Object value, java.lang.Object filename)
Appends a new value onto an existing key inside aFormData
object, or adds the key if it does not already exist.void
FormData. delete_js(java.lang.String name)
Removes the entry (if exists).org.htmlunit.corejs.javascript.Scriptable
FormData. entries()
void
FormData. forEach(java.lang.Object callback)
The FormData.forEach() method allows iteration through all key/value pairs contained in this object via a callback function.java.lang.String
FormData. get(java.lang.String name)
org.htmlunit.corejs.javascript.Scriptable
FormData. getAll(java.lang.String name)
java.lang.String
XMLHttpRequest. getAllResponseHeaders()
Returns the labels and values of all the HTTP headers.HTMLCollection
XMLDocument. getElementsByTagName(java.lang.String tagName)
Returns all the descendant elements with the specified tag name.java.lang.Object
XSLTProcessor. getParameter(java.lang.String namespaceURI, java.lang.String localName)
Gets a parameter if previously set by setParameter.java.lang.String
XMLHttpRequest. getResponseHeader(java.lang.String headerName)
Retrieves the value of an HTTP header from the response body.boolean
FormData. has(java.lang.String name)
void
XSLTProcessor. importStylesheet(Node style)
Imports the specified stylesheet into this XSLTProcessor for transformations.java.lang.Object
FormData. keys()
The FormData.keys() method returns an iterator allowing to go through all keys contained in this object.void
XMLHttpRequest. open(java.lang.String method, java.lang.Object urlParam, java.lang.Object asyncParam, java.lang.Object user, java.lang.Object password)
Assigns the destination URL, method and other optional attributes of a pending request.void
XMLHttpRequest. overrideMimeType(java.lang.String mimeType)
Override the mime type returned by the server (if any).void
XMLHttpRequest. send(java.lang.Object content)
Sends the specified content to the server in an HTTP request and receives the response.java.lang.String
XMLSerializer. serializeToString(Node root)
The subtree rooted by the specified element is serialized to a string.void
FormData. set(java.lang.String name, java.lang.Object value, java.lang.Object filename)
Sets a new value for an existing key inside aFormData
object, or adds the key if it does not already exist.void
XSLTProcessor. setParameter(java.lang.String namespaceURI, java.lang.String localName, java.lang.Object value)
Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor.void
XMLHttpRequest. setRequestHeader(java.lang.String name, java.lang.String value)
Sets the specified header to the specified value.XMLDocument
XSLTProcessor. transformToDocument(Node source)
Transforms the node source applying the stylesheet given by the importStylesheet() function.DocumentFragment
XSLTProcessor. transformToFragment(Node source, java.lang.Object output)
Transforms the node source applying the stylesheet given by the importStylesheet() function.java.lang.Object
FormData. values()
The URLSearchParams.values() method returns an iterator allowing to go through all values contained in this object. -
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(java.lang.String ip)
Concatenates the four dot-separated bytes into one 4-byte word and converts it to decimal.static boolean
ProxyAutoConfig. dateRange(java.lang.String value1, java.lang.Object value2, java.lang.Object value3, java.lang.Object value4, java.lang.Object value5, java.lang.Object value6, java.lang.Object value7)
Checks if today is included in the specified range.static boolean
ProxyAutoConfig. dnsDomainIs(java.lang.String host, java.lang.String domain)
Returns true if the domain of hostname matches.static int
ProxyAutoConfig. dnsDomainLevels(java.lang.String host)
Returns the number (integer) of DNS domain levels (number of dots) in the hostname.static java.lang.String
ProxyAutoConfig. dnsResolve(java.lang.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(java.lang.String host, java.lang.String pattern, java.lang.String mask)
Returns true if the IP address of the host matches the specified IP address pattern.static boolean
ProxyAutoConfig. isPlainHostName(java.lang.String host)
Returns true if there is no domain name in the hostname (no dots).static boolean
ProxyAutoConfig. isResolvable(java.lang.String host)
Tries to resolve the hostname.static boolean
ProxyAutoConfig. localHostOrDomainIs(java.lang.String host, java.lang.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 java.lang.String
ProxyAutoConfig. myIpAddress()
Returns the IP address of the local host, as a string in the dot-separated integer format.static boolean
ProxyAutoConfig. shExpMatch(java.lang.String str, java.lang.String shexp)
Matches the specified string against a shell expression, not regular expression.static boolean
ProxyAutoConfig. timeRange(java.lang.String value1, java.lang.Object value2, java.lang.Object value3, java.lang.Object value4, java.lang.Object value5, java.lang.Object value6, java.lang.Object value7)
Checks if the time now is included in the specified range.static boolean
ProxyAutoConfig. weekdayRange(java.lang.String wd1, java.lang.Object wd2, java.lang.Object gmt)
Checks if today is included in the specified range.
-