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

Method splitText

src/main/java/org/htmlunit/javascript/host/dom/Text.java:51–55  ·  view source on GitHub ↗

Split a Text node in two. @param offset the character position at which to split the Text node @return the Text node that was split from this node

(final int offset)

Source from the content-addressed store, hash-verified

49 * @return the Text node that was split from this node
50 */
51 @JsxFunction
52 public HtmlUnitScriptable splitText(final int offset) {
53 final DomText domText = (DomText) getDomNodeOrDie();
54 return getScriptableFor(domText.splitText(offset));
55 }
56
57 /**
58 * Returns wholeText value.

Callers

nothing calls this directly

Implementers 1

DomTextsrc/main/java/org/htmlunit/html/DomTex

Calls 3

splitTextMethod · 0.95
getDomNodeOrDieMethod · 0.45
getScriptableForMethod · 0.45

Tested by

no test coverage detected