class Nokogiri::XML::Node

def description

nil on XML documents and on unknown tags.
Fetch the Nokogiri::HTML4::ElementDescription for this node. Returns
##
def description
  return if document.xml?
  Nokogiri::HTML4::ElementDescription[name]
end