Am 02-Sep-2023 21:41:50 +0200 schrieb dossche.ni...@gmail.com: > Hello internals > > I'm opening the discussion for my RFC "DOM HTML5 parsing and serialization > support". > https://wiki.php.net/rfc/domdocument_html5_parser > > Kind regards > Niels > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >
Hi Niels, thank you for your proposal and your work on this. > This proposal introduces the DOM\HTML5Document class that extends the > DOMDocument class. The reason we introduce a new class instead of replacing > the methods of the existing class is to ensure full backwards compatibility. Although I do not dislike your idea with a new class for HTML5 parsing I have one question. Why not make the decision, which parser to use, dependent from the doctype declaration at the start of the html document? Best regards Christian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php