Closed askonomm closed 2 hours ago
hmmm do not know if that is a bug, i.e. if we are supposed to pass a full valid html doc. But I do not have the full picture so cc @nielsdos.
The dtd is missing, so the document is actually not standard compliant. You can silence this by passing LIBXML_NOERROR to the options as well (using bitwise OR).
Description
The following code:
Resulted in this output:
But I expected this output instead:
It to work normally, given that it gets a perfectly valid piece of HTML. It doesn't break the HTML parsing, so it seems to work, but for some reason throws a warning.
PHP Version
PHP 8.4.0 RC1
Operating System
Debian 12