Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support
| From: | naitsirch at e dot mail dot de | Date: | Mon, 04 Sep 2023 07:23:31 +0000 |
| Subject: | Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120977@lists.php.net to get a copy of this message | ||
Am 02-Sep-2023 21:41:50 +0200 schrieb dossche.niels@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