Skip to content

Commit 2e8d50e

Browse files
committed
Fix parsing html with tag that has 'tag' attribute, see paquettg#311
1 parent 4e01a43 commit 2e8d50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPHtmlParser/Dom/Parser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function parse(Options $options, Content $content, int $size): AbstractNo
3737
$root->setHtmlSpecialCharsDecode($options->isHtmlSpecialCharsDecode());
3838
$activeNode = $root;
3939
while ($activeNode !== null) {
40-
if ($activeNode && $activeNode->tag->name() === 'script'
40+
if ($activeNode && $activeNode->getTag()->name() === 'script'
4141
&& $options->isCleanupInput() !== true
4242
) {
4343
$str = $content->copyUntil('</');

0 commit comments

Comments
 (0)