Permalink
Browse files

DomQuery: added missing error suppression for <picture> (#385)

  • Loading branch information...
JanTvrdik authored and dg committed May 9, 2018
1 parent 80ba753 commit d23655a39bfba4949a550101030d59eaaa8996ad
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 src/Framework/DomQuery.php
@@ -38,7 +38,7 @@ public static function fromHtml($html)
libxml_use_internal_errors($old);
$re = '#Tag (article|aside|audio|bdi|canvas|data|datalist|figcaption|figure|footer|header|keygen|main|mark'
. '|meter|nav|output|progress|rb|rp|rt|rtc|ruby|section|source|template|time|track|video|wbr) invalid#';
. '|meter|nav|output|picture|progress|rb|rp|rt|rtc|ruby|section|source|template|time|track|video|wbr) invalid#';
foreach ($errors as $error) {
if (!preg_match($re, $error->message)) {
trigger_error(__METHOD__ . ": $error->message on line $error->line.", E_USER_WARNING);

0 comments on commit d23655a

Please sign in to comment.