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.
1 parent 30db060 commit db6e7e6Copy full SHA for db6e7e6
test/HTML5/Html5Test.php
@@ -480,4 +480,13 @@ public function testCDATA()
480
$res = $this->cycleFragment('a<![CDATA[ This <is> a test. ]]>b');
481
$this->assertRegExp('|<!\[CDATA\[ This <is> a test\. \]\]>|', $res);
482
}
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&target=baz\">https://domain.com/page.php?foo=bar&target=baz</a>",
489
+ $res
490
+ );
491
+ }
492
0 commit comments