Use localName rather than tagName.toLowerCase() when formatting Elements, to avoid unnecessary confusion.
Merge pull request #66 from Ms2ger/avoid-tagName

Use localName rather than tagName.toLowerCase() when formatting Elements...