summaryrefslogtreecommitdiff
path: root/test/HTML5
diff options
context:
space:
mode:
authorKieran Brahney <[email protected]>2020-08-24 14:01:40 +0100
committerKieran Brahney <[email protected]>2020-08-24 16:25:08 +0100
commitdb6e7e6f97d03f4857fc4dd70362290e546c0cdf (patch)
tree87fcd1e25c399ca9c97f711bf63558cf69fba1c9 /test/HTML5
parent30db060bff9b34578b8bbda972ea0098bc706f55 (diff)
added test
Diffstat (limited to 'test/HTML5')
-rw-r--r--test/HTML5/Html5Test.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php
index 26d52fe..4474e1f 100644
--- a/test/HTML5/Html5Test.php
+++ b/test/HTML5/Html5Test.php
@@ -480,4 +480,13 @@ class Html5Test extends TestCase
$res = $this->cycleFragment('a<![CDATA[ This <is> a test. ]]>b');
$this->assertRegExp('|<!\[CDATA\[ This <is> a test\. \]\]>|', $res);
}
+
+ public function testAnchorTargetQueryParam()
+ {
+ $res = $this->cycle("<a href=\"https://domain.com/page.php?foo=bar&target=baz\">https://domain.com/page.php?foo=bar&target=baz</a>");
+ $this->assertStringContainsString(
+ "<a href=\"https://domain.com/page.php?foo=bar&amp;target=baz\">https://domain.com/page.php?foo=bar&amp;target=baz</a>",
+ $res
+ );
+ }
}