We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b9cb8d commit d274b1cCopy full SHA for d274b1c
src/HTMLCollection.php
@@ -18,6 +18,7 @@ class HTMLCollection extends NodeList {
18
/** @noinspection PhpMissingParentConstructorInspection */
19
public function __construct(DOMNodeList $domNodeList) {
20
$this->list = [];
21
+ $this->rewind();
22
23
for($i = 0, $n = $domNodeList->length; $i < $n; $i++) {
24
$item = $domNodeList->item($i);
0 commit comments