This document contains three tags using various casing styles: UPPER-CASE, lower-case and Camel-Case. Below, in the left column, you see the native Element.tagName. This seems to be uniformly uppercase across browsers. On the right, you see the return value of the XPATH name() function. This seems to be uniformly lowercase, with the exception of FireFox which returns an upper-cased string.