Use children collection to iterate over children of the element, rather then childNodes. Issue #6.