changed all node names checks to use lower case uniformly, fixes HTML/XHTML/XML node names checking, removed ugly optimization on siblings in favor of cleaner/shorter code, adjusted comments/syntax
changed all node names checks to use lower case uniformly, fixes HTML/XHTML/XML node names checking, removed ugly optimization on siblings in favor of cleaner/shorter code, adjusted comments/syntax

dperini/nwevents