diff --git a/src/cli/yggo.php b/src/cli/yggo.php index 82c0829..792e07f 100644 --- a/src/cli/yggo.php +++ b/src/cli/yggo.php @@ -543,7 +543,7 @@ if (!empty($argv[1])) { foreach ($selectorTarget->childNodes as $node) { - $value = trim($element->ownerDocument->saveHtml()); + $value = trim($node->ownerDocument->saveHtml()); if (empty($value)) {