diff options
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'); |