Convenience function to get the pair of namespace and localName.
Pair<String, String?> getElementNameTuple(Element e) { final ns = e.namespaceUri ?? Namespaces.html; return Pair(ns, e.localName); }