Fixed LibXML errors are not suppressed

This commit is contained in:
Yusuf Kandemir 2018-11-12 19:41:45 +03:00
parent b5377c04c5
commit c3eba31d40

View File

@ -16,7 +16,7 @@ abstract class Microdata
public static function fromHTMLFile($filename, $documentURI = '') public static function fromHTMLFile($filename, $documentURI = '')
{ {
$dom = new MicrodataDOMDocument; $dom = new MicrodataDOMDocument;
$dom->loadHTMLFile($filename); $dom->loadHTMLFile($filename, LIBXML_NOERROR);
$dom->documentURI = $documentURI; $dom->documentURI = $documentURI;
return new MicrodataParser($dom); return new MicrodataParser($dom);