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

Method setStart

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

Sets the attributes describing the start 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

100 * @param offset the offset value within the node
101 */
102 @JsxFunction
103 public void setStart(final Node refNode, final int offset) {
104 if (refNode == null) {
105 throw JavaScriptEngine.reportRuntimeError("It is illegal to call Range.setStart() with a null node.");
106 }
107 internSetStartContainer(refNode);
108 internSetStartOffset(offset);
109 }
110
111 /**
112 * Sets the start of the range to be after the node.

Callers 15

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

Calls 3

reportRuntimeErrorMethod · 0.95
internSetStartOffsetMethod · 0.80

Tested by

no test coverage detected