Closed radimsuckr closed 10 years ago
There is no easy way to workaround for this. As explain on forum
http://forum.nette.org/en/1184-tester-domquery-fromhtml-error http://forum.nette.org/en/1396-tester-domquery-invalid-tag-in-entity
It would require setting a custom error handler and parsing the warning or ignoring all warnings.
Fixed by https://github.com/nette/tester/commit/e60cf2d0718f6daf88426bb012e03a7c939cd2ac. Thanks to @dg.
PHP 5.5.12 (openSUSE 13.1)
When I have following HTML code:
And this line in test:
Test fails on
<nav>
element with error:E_WARNING: DOMDocument::loadHTML(): Tag nav invalid in Entity
I found some answer on Stackoverflow and it looks like it's a bug in DOMDocument, but I think that Nette\Tester should treat this.