Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121118 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95433 invoked from network); 21 Sep 2023 19:39:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Sep 2023 19:39:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A99021804C6 for ; Thu, 21 Sep 2023 12:39:24 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 ; Thu, 21 Sep 2023 12:39:24 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-9ad8d47ef2fso165524166b.1 for ; Thu, 21 Sep 2023 12:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695325162; x=1695929962; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yNPlguatZWWz6knq1LFF/WfQ6ZTLsDcGDC/dmCc2u74=; b=Rb3QGoBLa87eipfQpA/BF7P9hAxI++iaZYclzQLByNs19a+lt0u/i9p54eF5ugw9Rm T5jJ5Gx/ZcBawxQ/oL2lktRENrA/WMCyRzpAutQicbc7b2qexXproDpgaLqVrkzzNO+C OeM+meOzRusObzbVYhrKcMvrgZGOxdbGh8bEtMmuEfZLjz6RWjeODi8Z/jQ5TvzM89op auD4eXZBTSOXMxFC4BavXPToknfNRHCizE7juWUX8PBdaZkYTnqsUiMCR4w+xQJxtAdI eK5PvKJKRIjWEydxrIWaZH9GNAK33STd6YtVzyayJM28Z7WSxpZhtW5OxxMDl0zZVMbY hIwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695325162; x=1695929962; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yNPlguatZWWz6knq1LFF/WfQ6ZTLsDcGDC/dmCc2u74=; b=q+wMOfkiWHHyvbZOhA4zkGGNAiImOYPpJJ5t7hXnBLYQYKYprtpifBl0t+ImOfSFWx CR6yyyED/x9jjdLWSfINfy0AQTQ7+X761ONkZ5rADJYKmQmk681rAVEt2aJf6eJMJwA7 ex70pdLbqDKXT+EAx/OGN2PV7lOERuY+pI4L0FiHd+gsiQPrN6UqUwJudmhdaXojzRih Luhq53zJE7j/SfnZmWiTQ4Znff6/7MUqnA3oLhYrcR9ej8+aL+CliuEMaVeBz64+4oZR am13UeOkSyJIERtMiGZLmgA9WXSkILATbURCaFfPxY/8SzqxBpmHkvur29eiuunWvMtv 4RuQ== X-Gm-Message-State: AOJu0YyeqX22hzz6Cl2BjsSIqGodrmP6gorKoIUgPAlhxgNIAPZY10aR R7e3CJQmCkADZq7Nsip6nT43UpRxYuI= X-Google-Smtp-Source: AGHT+IFwTAoc3GTiBnypCD4tiDtQfphLFO5DGzhIv+/bdPi71U8OR8+7OXISoFjg9eoEdYqMXYqWVg== X-Received: by 2002:a17:906:1087:b0:9ad:be8a:a582 with SMTP id u7-20020a170906108700b009adbe8aa582mr5786536eju.21.1695325161855; Thu, 21 Sep 2023 12:39:21 -0700 (PDT) Received: from ?IPV6:2a02:1811:cc83:ee50:280e:1e36:3a00:824? (ptr-dtfv08akcem5xburtic.18120a2.ip6.access.telenet.be. [2a02:1811:cc83:ee50:280e:1e36:3a00:824]) by smtp.gmail.com with ESMTPSA id k5-20020a1709062a4500b009934b1eb577sm1522880eje.77.2023.09.21.12.39.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 12:39:21 -0700 (PDT) Message-ID: Date: Thu, 21 Sep 2023 21:39:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support From: dossche.niels@gmail.com (Niels Dossche) 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 After the discussion here, I have made the following changes to the RFC. The RFC's version is now 0.6.0, previously it was 0.5.3. * Clarified the reasoning to use factory methods. * Changed the factory method names to be consistent with DateTimeImmutable etc (i.e. fromString -> createFromString, fromFile -> createFromFile, createEmptyDocument -> createEmpty). * Marked HTMLDocument & XMLDocument classes as final. This allows us to extend them in the future without BC breakage. This is also motivated by the fact that extending them would be problematic anyway (see https://www.php.net/manual/en/domdocument.registernodeclass for how to do it with DOMDocument and the problems it has). * Clarified that we also need to change the $document property of DOMXPath from DOMDocument to DOM\Document, and the constructor too. You can read about this in the BC section. Kind regards Niels