refactor: use localName
instead of tagName
#2612
Merged
localName
instead of tagName
#2612