From d4c74a14bfdc3e2158e556afbcddd3ce55f60fd9 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Tue, 9 May 2017 11:38:55 +0200 Subject: handle special "img" "image" handling --- test/HTML5/Html5Test.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/HTML5/Html5Test.php') 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 = " + + + foo + + + + + + + "; + $doc = $this->html5->loadHTML($html); + $this->assertInstanceOf('DOMElement', $doc->getElementsByTagName('image')->item(0)); + $this->assertEmpty($this->html5->getErrors()); + } + public function testLoadOptions() { // doc -- cgit v1.2.3