MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / append

Method append

src/main/java/org/htmlunit/javascript/host/Element.java:1727–1735  ·  view source on GitHub ↗

Inserts a set of Node objects or string objects after the last child of the Element. String objects are inserted as equivalent Text nodes. @param context the context @param scope the scope @param thisObj this object @param args the arguments @param function the function

(final Context context, final VarScope scope,
            final Scriptable thisObj, final Object[] args, final Function function)

Source from the content-addressed store, hash-verified

1725 * @param function the function
1726 */
1727 @JsxFunction
1728 public static void append(final Context context, final VarScope scope,
1729 final Scriptable thisObj, final Object[] args, final Function function) {
1730 if (!(thisObj instanceof Element)) {
1731 throw JavaScriptEngine.typeError("Illegal invocation");
1732 }
1733
1734 Node.append(context, thisObj, args, function);
1735 }
1736
1737 /**
1738 * Inserts a set of Node objects or string objects before the first child of the Element.

Callers 1

printNodeMethod · 0.45

Implementers 1

DomElementsrc/main/java/org/htmlunit/html/DomEle

Calls 2

typeErrorMethod · 0.95
appendMethod · 0.95

Tested by

no test coverage detected