.tagName property returns lowercase in chrome browser.

.tagName property returns lowercase in chrome browser.
Therefore, it's better to use .nodeName property which always returns uppercase.

.nodeName Case Sensitivity
http://ejohn.org/blog/nodename-case-sensitivity/