code: function(text) {
          var node;
          if (typeof text !== "string") {
              text = String(text);
          }
          if(this.xmldom) {
              node = this.xmldom.createTextNode(text);
          } else {
              node = document.createTextNode(text);
          }
          return node;
      }
docs: APIMethod: createTextNode
  Create a text node.  This node can be appended to another node with
  the standard node.appendChild method.  For cross-browser support,
  this method must be used instead of document.createTextNode.
  
  Parameters:
  text - {String} The text of the node.
  
  Returns:
  {DOMElement} A DOM text node.