Class Text

All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
Direct Known Subclasses:
CDATASection

public class Text extends CharacterData
A JavaScript object for Text.
See Also:
  • Constructor Details

    • Text

      public Text()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class CharacterData
    • splitText

      public Object splitText(int offset)
      Split a Text node in two.
      Parameters:
      offset - the character position at which to split the Text node
      Returns:
      the Text node that was split from this node
    • getWholeText

      public String getWholeText()
      Returns wholeText value.
      Returns:
      wholeText value