getElementNameTuple function

(String, String?) getElementNameTuple(
  1. Element e
)

Convenience function to get the pair of namespace and localName.

Implementation

(String, String?) getElementNameTuple(Element e) {
  final ns = e.namespaceUri ?? Namespaces.html;
  return (ns, e.localName);
}