From db6e7e6f97d03f4857fc4dd70362290e546c0cdf Mon Sep 17 00:00:00 2001 From: Kieran Brahney Date: Mon, 24 Aug 2020 14:01:40 +0100 Subject: added test --- test/HTML5/Html5Test.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/HTML5/Html5Test.php') 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 a test. ]]>b'); $this->assertRegExp('| a test\. \]\]>|', $res); } + + public function testAnchorTargetQueryParam() + { + $res = $this->cycle("https://domain.com/page.php?foo=bar&target=baz"); + $this->assertStringContainsString( + "https://domain.com/page.php?foo=bar&target=baz", + $res + ); + } } -- cgit v1.2.3