code: function getAttrMap(attrs)
  {
  	var i;
  	var map = {};
  	var numAttrs = attrs.length;
  	
  	for (i=0; i<numAttrs; i++)
  	{
  		map[ attrs[i].name ] = attrs[i].value;
  	}
  	
  	return map;
  }
docs: /*
  Convert attributes array to a map.
  
  Note: parse5 will have already handled multiple attrs of the
  same name.