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

Method setEnd

src/main/java/org/htmlunit/javascript/host/dom/Range.java:152–159  ·  view source on GitHub ↗

Sets the attributes describing the end of a Range. @param refNode the reference node @param offset the offset value within the node

(final Node refNode, final int offset)

Source from the content-addressed store, hash-verified

150 * @param offset the offset value within the node
151 */
152 @JsxFunction
153 public void setEnd(final Node refNode, final int offset) {
154 if (refNode == null) {
155 throw JavaScriptEngine.reportRuntimeError("It is illegal to call Range.setEnd() with a null node.");
156 }
157 internSetEndContainer(refNode);
158 internSetEndOffset(offset);
159 }
160
161 /**
162 * Sets the end of the range to be after the node.

Callers 15

mootools-slick.jsFile · 0.45
getRangeFunction · 0.45
tiny_mce_src.jsFile · 0.45
getRangeFunction · 0.45
tiny_mce.jsFile · 0.45
fFunction · 0.45
tiny_mce_jquery.jsFile · 0.45
fFunction · 0.45
fFunction · 0.45

Calls 3

reportRuntimeErrorMethod · 0.95
internSetEndContainerMethod · 0.80
internSetEndOffsetMethod · 0.80

Tested by

no test coverage detected