Tester\DomQuery invalid tag in Entity
Notice: This thread is very old.
- zimmi
- Member | 94
Hi,
I'm using <nav>
inside my HTML code and I get
E_WARNING: DOMDocument::loadHTML(): Tag nav invalid in Entity
complaining about the code not being valid. Is it possible to use this element
with DomQuery?
I know I can use $dom = @Tester\DomQuery::fromHtml($html);
,
but I would rather not.
Thanks.
- Jan Tvrdík
- Nette guru | 2595
$libxmlPreviousState = libxml_use_internal_errors(true);
Tester\DomQuery::fromHtml($html)
libxml_clear_errors();
libxml_use_internal_errors($libxmlPreviousState);