use toUpperCase before checking nodeName. Fixes #194