fix(dom_util): loosen typing of nodes list

Closes #1359