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)
| 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. |
no test coverage detected