Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120977 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9541 invoked from network); 4 Sep 2023 07:23:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Sep 2023 07:23:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A5D1E1804B0 for ; Mon, 4 Sep 2023 00:23:34 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS20546 62.201.172.0/24 X-Spam-Virus: No X-Envelope-From: Received: from shout01.mail.de (shout01.mail.de [62.201.172.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 4 Sep 2023 00:23:33 -0700 (PDT) Received: from postfix01.mail.de (postfix01.bt.mail.de [10.0.121.125]) by shout01.mail.de (Postfix) with ESMTP id 9DF1CA1788; Mon, 4 Sep 2023 09:23:32 +0200 (CEST) Received: from smtp01.mail.de (smtp03.bt.mail.de [10.0.121.213]) by postfix01.mail.de (Postfix) with ESMTP id 8235780151; Mon, 4 Sep 2023 09:23:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1693812212; bh=TcLMM4iUTAgWEOQc/op6NoWic7fCNQkCzpXStRx3A3U=; h=Message-Id:From:To:Subject:Date:From:To:CC:Subject:Reply-To; b=Wuc7KDWSfR5ecrk2xAeZxBv6uLRTCqFofPDuOeoFruFJ4JyorvLJwmldlP5y6EYW5 citM1DPiNkcIsNh3Xw3OW/Cx83G5emOGFcAGtEn4YTVdFx9sjx3wk9RkzsOhBK7TV3 1AxCN/+kgpyLTux3wO6zWRCIkRrlBP/cr7O19tFFesRsPjTxdpX4xedczYHewyYekD NXff0nqioYhZCaeVbzi3LA8TOB868UFc1nGFaustHva/LNnKvfPbz/bpxArbGGx1Lx kp8XBjV4qDZ/RlTkG+9Jy52z7uNm6/l1WkY6sMgbZpX2W+0/P71NMyzTES6hmJpHfR wyUASBhHTEigg== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp01.mail.de (Postfix) with ESMTPSA id D33D8241507; Mon, 4 Sep 2023 09:23:31 +0200 (CEST) Message-ID: <9c67a472ffc83d0ee4490b446d03cebbbc2df611@mail.de> To: dossche.niels@gmail.com, internals@lists.php.net X-Priority: 3 In-Reply-To: References: Date: Mon, 04 Sep 2023 09:23:31 +0200 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline MIME-Version: 1.0 X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 995 X-purgate-ID: 154282::1693812212-037D5602-CFB511BE/0/0 Subject: Re: [PHP-DEV] [RFC] [Discussion] DOM HTML5 parsing and serialization support From: naitsirch@e.mail.de Am 02-Sep-2023 21:41:50 +0200 schrieb dossche.niels@gmail.com:=0A> Hello= internals=0A> =0A> I'm opening the discussion for my RFC "DOM HTML5 par= sing and serialization support".=0A> https://wiki.php.net/rfc/domdocumen= t_html5_parser=0A> =0A> Kind regards=0A> Niels=0A> =0A> -- =0A> PHP Inte= rnals - PHP Runtime Development Mailing List=0A> To unsubscribe, visit:= https://www.php.net/unsub.php=0A> =0A=0AHi Niels,=0A=0Athank you for yo= ur proposal and your work on this.=0A=0A> This proposal introduces the D= OM\HTML5Document class that extends the =0A> DOMDocument class. The reas= on we introduce a new class instead of replacing =0A> the methods of the= existing class is to ensure full backwards compatibility.=0A=0AAlthough= I do not dislike your idea with a new class for HTML5 parsing I have on= e question. Why not make the decision, which parser to use, dependent fr= om the doctype declaration at the start of the html document?=0A=0ABest= regards=0AChristian