MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / createSplitTextNode

Method createSplitTextNode

src/main/java/org/htmlunit/html/DomText.java:82–84  ·  view source on GitHub ↗

Creates a new text node split from another text node. This method allows the derived type of the new text node to match the original node type. @param offset the character position at which to split the DomText node @return the newly created Text node

(final int offset)

Source from the content-addressed store, hash-verified

80 * @return the newly created Text node
81 */
82 protected DomText createSplitTextNode(final int offset) {
83 return new DomText(getPage(), getData().substring(offset));
84 }
85
86 /**
87 * {@inheritDoc}

Callers 1

splitTextMethod · 0.95

Calls 3

substringMethod · 0.80
getPageMethod · 0.65
getDataMethod · 0.45

Tested by

no test coverage detected