Extract DOM node types