code: function(node) {
          var simple = true;
          for(var child=node.firstChild; child; child=child.nextSibling) {
              if(child.nodeType === 1) {
                  simple = false;
                  break;
              }
          }
          return simple;
      }
docs: APIMethod: isSimpleContent
  Test if the given node has only simple content (i.e. no child element
  nodes).
  
  Parameters:
  node - {DOMElement} An element node.
  
  Returns:
  {Boolean} The node has no child element nodes (nodes of type 1).