From 5851989629b8dfe390b69d6bc509358183c3e6b4 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Wed, 17 Aug 2016 20:18:58 +0200 Subject: In XML mode, tags are case sensitive Fixes #114 --- test/HTML5/Html5Test.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/HTML5/Html5Test.php') diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php index ce6bb0b..78ac80f 100644 --- a/test/HTML5/Html5Test.php +++ b/test/HTML5/Html5Test.php @@ -399,6 +399,18 @@ class Html5Test extends TestCase $this->assertRegExp('|R&D|', $res); } + public function testCaseSensitiveTags() + { + $dom = $this->html5->loadHTML( + '', + array( + "xmlNamespaces" => true + ) + ); + $out = $this->html5->saveHTML($dom); + $this->assertRegExp('||', $out); + } + public function testComment() { $res = $this->cycle('ab'); -- cgit v1.2.3