mikeric/rivets — pull request #96 by mbenedettini (2012-11-15 23:42:15+00:00)
Title: Fix for IE8 getElementsByTagName (do not parse comment nodes)

Hello:

Today I found out that IE8's getElementsByTagName returns not only actual nodes but also others such as comments. This is quite annoying as comment nodes break rivets in IE8 and, of course, I do not want to remove comments.

The simplest and quickest solution I came up was to only parse nodes for which .attributes is not null.

Hope you guys find it useful.
Mariano.