Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge 6b7da10 into 82acc63
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitely-young authored Jul 29, 2019
2 parents 82acc63 + 6b7da10 commit 1559a59
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public function get($node)
{
$fragment = $node->ownerDocument->createDocumentFragment();
foreach ($this->children as $child) {
$cloned_node = Transformer::cloneNode($child->get($node));
$childNode = $child->get($node);
if ($childNode === null) {
continue;
}
$cloned_node = Transformer::cloneNode($childNode);

if (Type::is($cloned_node, 'DOMNode')) {
$fragment->appendChild($cloned_node);
}
Expand Down

5 comments on commit 1559a59

@htetwaiyansoe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: it

@htetwaiyansoe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htetwaiyansoe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htetwaiyansoe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htetwaiyansoe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.