Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/PHPHtmlParser/Dom/Node/HtmlNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ protected function clear(): void
$this->innerHtml = null;
$this->outerHtml = null;
$this->text = null;
$this->innerText = null;
$this->textWithChildren = null;

if ($this->parent !== null) {
Expand Down
2 changes: 1 addition & 1 deletion src/PHPHtmlParser/Dom/Node/InnerNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getChildren(): array
$childrenIds[] = $child->id;
$child = $this->nextChild($child->id());
if (\in_array($child->id, $childrenIds, true)) {
throw new CircularException('Circular sibling referance found. Child with id ' . $child->id() . ' found twice.');
throw new CircularException('Circular sibling reference found on child with id ' . $child->id() . ' found twice.');
}
} while (true);
} catch (ChildNotFoundException $e) {
Expand Down