tagify: compare against Node.TEXT_NODE for Safari

Compatibility issues, Safari does not have TEXT_NODE constant on Element, but
rather, Node.