diff options
author | Asmir Mustafic <[email protected]> | 2016-08-17 20:18:58 +0200 |
---|---|---|
committer | Asmir Mustafic <[email protected]> | 2016-08-17 20:18:58 +0200 |
commit | 5851989629b8dfe390b69d6bc509358183c3e6b4 (patch) | |
tree | 97177a0308bb3d8673e7a8694682cb47e7bc16cf /test/HTML5/Html5Test.php | |
parent | 9da7ec0397ebb0e91139b76f4d248ba09cc0c778 (diff) |
In XML mode, tags are case sensitive
Fixes #114
Diffstat (limited to 'test/HTML5/Html5Test.php')
-rw-r--r-- | test/HTML5/Html5Test.php | 12 |
1 files changed, 12 insertions, 0 deletions
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( + '<html><body><Button color="red">Error</Button></body></html>', + array( + "xmlNamespaces" => true + ) + ); + $out = $this->html5->saveHTML($dom); + $this->assertRegExp('|<html><body><Button color="red">Error</Button></body></html>|', $out); + } + public function testComment() { $res = $this->cycle('a<!-- This is a test. -->b'); |