Use DocumentFragment#childNodes instead of children.

Looks like childNodes is supported better across browsers.