diff options
author | Kieran Brahney <[email protected]> | 2020-08-24 14:01:40 +0100 |
---|---|---|
committer | Kieran Brahney <[email protected]> | 2020-08-24 16:25:08 +0100 |
commit | db6e7e6f97d03f4857fc4dd70362290e546c0cdf (patch) | |
tree | 87fcd1e25c399ca9c97f711bf63558cf69fba1c9 /test/HTML5 | |
parent | 30db060bff9b34578b8bbda972ea0098bc706f55 (diff) |
added test
Diffstat (limited to 'test/HTML5')
-rw-r--r-- | test/HTML5/Html5Test.php | 9 |
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&target=baz\">https://domain.com/page.php?foo=bar&target=baz</a>", + $res + ); + } } |