code: func rootSelector(n *html.Node) bool {
  	if n.Type != html.ElementNode {
  		return false
  	}
  	if n.Parent == nil {
  		return false
  	}
  	return n.Parent.Type == html.DocumentNode
  }
docs: // rootSelector implements :root