diff options
Diffstat (limited to 'test/HTML5/Html5Test.php')
-rw-r--r-- | test/HTML5/Html5Test.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php index 78ac80f..77643c4 100644 --- a/test/HTML5/Html5Test.php +++ b/test/HTML5/Html5Test.php @@ -28,6 +28,25 @@ class Html5Test extends TestCase return $out; } + + public function testImageTagsInSvg() + { + $html = "<!DOCTYPE html> + <html> + <head> + <title>foo</title> + </head> + <body> + <svg> + <image height=\"10\" width=\"10\"></image> + </svg> + </body> + </html>"; + $doc = $this->html5->loadHTML($html); + $this->assertInstanceOf('DOMElement', $doc->getElementsByTagName('image')->item(0)); + $this->assertEmpty($this->html5->getErrors()); + } + public function testLoadOptions() { // doc |