don't visit element nodes a 2nd time

speeds things up a fractional amount. great job on this library, I'm planning on using it soon :-)
Merge pull request #2 from MatthewMueller/patch-1

don't visit element nodes a 2nd time