code: function( options ){
  
  			// if a node is passed
  			if(options.node){
  				this.rootNode = options.node;
  			}
  
  
  			// if a html string is passed
  			if(options.html){
  				//var domParser = new DOMParser();
                  var domParser = this.getDOMParser();
         			this.rootNode = domParser.parseFromString( options.html, 'text/html' );
  			}
  
  
  			// find top level document from rootnode
  			if(this.rootNode !== null){
  				if(this.rootNode.nodeType === 9){
  					this.document = this.rootNode;
  					this.rootNode = modules.domUtils.querySelector(this.rootNode, 'html');
  				}else{
  					// if it's DOM node get parent DOM Document
  					this.document = modules.domUtils.ownerDocument(this.rootNode);
  				}
  			}
  
  
  			// use global document object
  			if(!this.rootNode && document){
  				this.rootNode = modules.domUtils.querySelector(document, 'html');
  				this.document = document;
  			}
  
  
  			if(this.rootNode && this.document){
  				return {document: this.document, rootNode: this.rootNode};
  			}
  
  			return {document: null, rootNode: null};
  		}
docs: configures what are the base DOM objects for parsing
  
  @param  {Object} options
  @return {DOM Node} node