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