NodeName returns the node name of the first element in the selection. It tries to behave in a similar way as the DOM's nodeName property (

Go's net/html package defines the following node types, listed with the corresponding returned value from this function:

ErrorNode : #error
TextNode : #text
DocumentNode : #document
ElementNode : the element's tag name
CommentNode : #comment
DoctypeNode : the name of the document type