Fixed an issue where Firefox would barf when trying to call toLowerCase() on the tagName property.