DOMResult iteration fix