We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23df5a4 + d383264 commit beb3231Copy full SHA for beb3231
src/PHPHtmlParser/Dom/AbstractNode.php
@@ -162,9 +162,6 @@ public function setParent(InnerNode $parent)
162
// assign child to parent
163
$this->parent->addChild($this);
164
165
- //clear any cache
166
- $this->clear();
167
-
168
return $this;
169
}
170
src/PHPHtmlParser/Dom/HtmlNode.php
@@ -186,6 +186,7 @@ protected function clear()
186
$this->innerHtml = null;
187
$this->outerHtml = null;
188
$this->text = null;
189
+
190
if (is_null($this->parent) === false) {
191
$this->parent->clear();
192
0 commit comments