Open MatzeKitt opened 5 months ago
Use the DOM\HTMLDocument class for improved parsing when PHP 8.4 is available. Create a wrapper that takes an HTML string and either returns a HTMLDocument or a DOMDocument if the first one is not supported.
DOM\HTMLDocument
HTMLDocument
DOMDocument
See also: https://wiki.php.net/rfc/domdocument_html5_parser
Better parsing without errors in HTML5 documents, which we usually have here.
No response
What feature are you requesting?
Use the
DOM\HTMLDocument
class for improved parsing when PHP 8.4 is available. Create a wrapper that takes an HTML string and either returns aHTMLDocument
or aDOMDocument
if the first one is not supported.See also: https://wiki.php.net/rfc/domdocument_html5_parser
Why is this feature necessary?
Better parsing without errors in HTML5 documents, which we usually have here.
Are you expecing side-effects?
No response
Code of Conduct