getElementNameTuple function

Pair<String, String?> getElementNameTuple(
  1. Element e
)

Convenience function to get the pair of namespace and localName.

Implementation

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