Got rid of unnecessary uppercasing, node.localName will always return lowercased tag names for HTML and the tag names for XUL are only valid if lowercased anyway.