Commit aaa1fc57 authored by Barnaby Walters's avatar Barnaby Walters

Ignored <template> elements before parsing, closes #52

parent 3dca1f10
......@@ -293,6 +293,11 @@ class Parser {
}
break;
}
// Ignore <template> elements as per the HTML5 spec
foreach ($this->xpath->query('//template') as $templateEl) {
$templateEl->parentNode->removeChild($templateEl);
}
$this->baseurl = $baseurl;
$this->doc = $doc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment