HHVM compatibility (DOMNodeList iteration)