appendText method

void appendText (String text)

Adds the specified text as a text node after the last child of this document fragment.

Implementation

void appendText(String text) {
  this.append(new Text(text));
}