code: function scrapeHtml(document, robots)
  {
  	var link,links,preliminaries,rootNode;
  	
  	rootNode = findRootNode(document);
  	
  	if (rootNode != null)
  	{
  		preliminaries = findPreliminaries(rootNode, robots);
  		links = [];
  		
  		findLinks(rootNode, function(node, attrName, url)
  		{
  			link = linkObj(url);
  
  			link.html.attrs = node.attrMap;
  			link.html.attrName = attrName;
  			link.html.base = preliminaries.base;
  			link.html.index = links.length;
  			link.html.selector = getSelector(node);
  			link.html.tag = stringifyNode(node);
  			link.html.tagName = node.nodeName;
  			link.html.text = getText(node);
  
  			// If not a "fake" (duplicated) element, as a result of adoption
  			if (node.__location !== undefined)
  			{
  				link.html.location = node.__location.attrs[attrName];
  			}
  			
  			links.push(link);
  		});
  	}
  	
  	return links;
  }
docs: /*
  Scrape a parsed HTML document/tree for links.