Class Text

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • Text

        public Text()
        Creates an instance.
    • Method Detail

      • splitText

        public java.lang.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 java.lang.String getWholeText()
        Returns wholeText value.
        Returns:
        wholeText value