Returns the node tag name. Returns null if node is not an Element.
node
String? getElementTagName(Node node) { final element = node.asElementChecked; return element?.tagName.toLowerCase(); }