Skip to content

Commit db6e7e6

Browse files
committed
added test
1 parent 30db060 commit db6e7e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/HTML5/Html5Test.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,4 +480,13 @@ public function testCDATA()
480480
$res = $this->cycleFragment('a<![CDATA[ This <is> a test. ]]>b');
481481
$this->assertRegExp('|<!\[CDATA\[ This <is> a test\. \]\]>|', $res);
482482
}
483+
484+
public function testAnchorTargetQueryParam()
485+
{
486+
$res = $this->cycle("<a href=\"https://domain.com/page.php?foo=bar&target=baz\">https://domain.com/page.php?foo=bar&target=baz</a>");
487+
$this->assertStringContainsString(
488+
"<a href=\"https://domain.com/page.php?foo=bar&amp;target=baz\">https://domain.com/page.php?foo=bar&amp;target=baz</a>",
489+
$res
490+
);
491+
}
483492
}

0 commit comments

Comments
 (0)