diff options
author | Asmir Mustafic <[email protected]> | 2017-05-09 11:38:55 +0200 |
---|---|---|
committer | Asmir Mustafic <[email protected]> | 2017-08-25 11:30:04 +0200 |
commit | d4c74a14bfdc3e2158e556afbcddd3ce55f60fd9 (patch) | |
tree | 275648fb47f062bada7ca0ba5550e5679e6231c5 /test/HTML5/Html5Test.php | |
parent | df71b47d1755e41e6ad29255caba7e13e7413139 (diff) |
handle special "img" "image" handling
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 |