Use children collection to iterate over children of the element, rather then childNodes. Issue #6.
Merge pull request #7 from dfsq/master

Use children collection to iterate over children of the element, rather ...