The read-only nodeName property of Node returns the name of the current node as a string.
nodeName
external String get nodeName;