static isText(elem) {
    return typeof elem === 'string';
  }
Checks if a node is of type text.
@param {!shaka.extern.xml.Node | string} elem The XML element.
@return {boolean} True if it is a text node.