I receive a such message in logs. It fills them. I am making my logs clean.
DOMDocument::loadHTML(): Tag drupal-entity-inline invalid in Entity, line: 1
The warning is because of tag name. There is the related issue - #1333730: [Meta] PHP DOM (libxml2) misinterprets HTML5 HTML5 parser is injected. This warning will disappear when the HTML5 parser is integrated.
Now warning are suppressed by the way:
@$dom->loadHTML($document);
I propose to do it by the way.
libxml_use_internal_errors(true);
$dom->loadHTML($document);
libxml_clear_errors();There is a documentation for the method.
http://php.net/manual/ru/function.libxml-use-internal-errors.php
There is also way to process messages.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_empbed-invalid_tag-2802269-1.patch | 624 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedlikin created an issue. See original summary.
Comment #2
Anonymous (not verified) commentedThere is a patch.
Comment #4
Anonymous (not verified) commentedComment #5
podarokYou can't patch core within contrib's context
Comment #6
Anonymous (not verified) commentedComment #7
Anonymous (not verified) commentedComment #8
dagmarThe function you are trying to modify belongs to Drupal Core.
Comment #21
pasqualle#3191041: [PP-1] PHP Warning: DOMDocument::loadHTML(): Tag drupal-media invalid in Entity, line: 34 in Drupal\Component\Utility\Html::load()