Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121177 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29118 invoked from network); 29 Sep 2023 16:58:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Sep 2023 16:58:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 752A7180543 for ; Fri, 29 Sep 2023 09:58:40 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 29 Sep 2023 09:58:39 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B823B320089C for ; Fri, 29 Sep 2023 12:58:37 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Fri, 29 Sep 2023 12:58:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1696006717; x= 1696093117; bh=AmbVk0vObevbie1xYDrvBUJ5hLqU7MoYDc7WnH28Y3I=; b=y gOH2c3K31U6sGW2+ww/1/AO05RaiIm1HUYAGod/uhO09+0jPgcn4ehAQLc4D6cIh 5FppstxJS+oaQ8yMTF4dhkZg2AULXr63+cs5MuylSsiwCdyS/f9xOB+2I8z3R8XZ YER0WEYAi+hCNHqkUhF6bPuygNcx2cRdwT+CCf9+AuRQBvZvkbvm2PP/S/JXHk2W MkmJFxS6a6tLBaMvnH/YpyRIjQrSGSW4rn7HDkXfoUvyGrT826xrlV3KHljvvpGo RycnmhW3VkStasuUaLPC4Y6lgNlHA/A88HNbSgB/0XfNIgqZXzWfKEGpZNeVAYSL 5wHTMm3lGv6vOvF9UyhZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696006717; x=1696093117; bh=AmbVk0vObevbi e1xYDrvBUJ5hLqU7MoYDc7WnH28Y3I=; b=r1IDcV5jkJ8NeXhBxBmIqmbqbVkoB uOQuzYADlz4gBPmz3I0wWDDAcJ5z1EnT7RsLHKjPyfcmpZCYeHtJVTYP4BxAtJsp 0XdEM8Yd0h4Lpoqz8yP8VOKf/gMVJdqmpYAJpDq1i3BBYIfSuZ5rWl6HwB25Mj+m DY20TLHEdM59HUFsovJrlge0FQlwOPeZjkFAmdHrwPqzm6FyH2NGuQaqtIoRR8h7 jHmr12GjjO1zDsBDS9WM52X17wE9zR7W4JufEO+SSX1x3Kik1DUsQFJuEYKsFany M/iZjNMc1iLp8HBdQiFQGjKdQvqnjnwCYRXCzTLenxuAVkL+pL23ObHLw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrtddvgddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeevheehvdevjeelvdevgfelvefftdejkeelvdekgeeh fffgiedvjefhhfeltdduteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C97BB1700089; Fri, 29 Sep 2023 12:58:36 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d MIME-Version: 1.0 Message-ID: <5ace1060-dd75-4cdc-b5e2-a2ea617df586@app.fastmail.com> In-Reply-To: <48c7bb29-a52c-416e-b855-be2746dc7a84@gmail.com> References: <48c7bb29-a52c-416e-b855-be2746dc7a84@gmail.com> Date: Fri, 29 Sep 2023 16:58:16 +0000 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support From: larry@garfieldtech.com ("Larry Garfield") On Fri, Sep 29, 2023, at 7:07 AM, Niels Dossche wrote: > On 02/09/2023 21:41, Niels Dossche wrote: >> 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 > > Hi internals > > Discussion seems to have died down. > Today, it's been 14 days since the last major change was done to the > RFC (i.e. the class hierarchy update). > And it's also been close to 4 weeks since I first announced the RFC it > on the mailing list. > I'd like to start the vote on Monday (20:00 PM GMT+2) and I intend to > let it run for 2 weeks. > Any final complaints should be raised now. > > Kind regards > Niels From the RFC: > \DOMDocument will also use DOM\Document as a base class to make it interchangeable with the new classes. We're only adding XMLDocument for completeness and API parity. It's a drop-in replacement for \DOMDocument, and behaves the exact same. The difference is that the API is on par with HTMLDocument, and the construction is designed to be more misuse-resistant. \DOMDocument will NOT change, and remains for the foreseeable future. Would it make sense then for one of \DOMDocument and DOM\XMLDocument to extend the other, then? So that, eg, we can type against DOM\XMLDocument and then support both old and new classes? Or are the construction et al differences enough that is not viable? > Similarly, the constants would lose their DOM_ prefix in the namespace version, e.g. DOM\INDEX_SIZE_ERR will be an alias for DOM_INDEX_SIZE_ERR. For constants that begin with XML_ I propose to keep the prefix. Unclear to me: Would the XML constants also be aliased into the namespace verbatim, or left globally? Did you consider making the new classes throw exceptions rather than forcing people to remember to call another "was there an error" global function like it's still 1996? :-) Otherwise looks good to me. Thanks! --Larry Garfield