code: function findRootNode(document)
  {
  	var i;
  	var rootNodes = document.childNodes;
  	
  	for (i=0; i<rootNodes.length; i++)
  	{
  		// Doctypes have no `childNodes` property
  		if (rootNodes[i].childNodes != null)
  		{
  			return rootNodes[i];
  		}
  	}
  }
docs: /*
  Find the `<html>` element.