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