View Single Post
  #4 (permalink)  
Old March 31st, 2013, 09:50 PM
metajack metajack is offline
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

A better fix would be to check the node type and ignore anything but element nodes.

Feel free to submit this via pull request on github, or just file a bug:
https://github.com/metajack/strophejs