Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120986 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31474 invoked from network); 5 Sep 2023 17:45:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Sep 2023 17:45:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2F650180083 for ; Tue, 5 Sep 2023 10:45:18 -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_H2,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-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 ; Tue, 5 Sep 2023 10:45:17 -0700 (PDT) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-52bd9ddb741so3988154a12.0 for ; Tue, 05 Sep 2023 10:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693935916; x=1694540716; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=IqXGOlLu3gN/v0rq7YAL68AsIb+5sflKBMQo5j5gXaQ=; b=kHvAAisrO6/+1aMkZ2lIGOwsJ3VvcV1VILHPDcByMlgmBIoMUeu0vlIzDAA46jXCCx ySKi6FytK/64TVb4DwTkNabM2+IUyAaWPxdpXvhfBk0si/obdAa5WTvDsY7obaXIEJVQ ZIJO9m91Z8y04q1AD+6wOEqBwbvcXANdO7TTL8EI4J7MIh5JbnUsqyY9DrNq/qQrn+/h 47rAo2PAuzdNDQVCLzAHAfEqZow7Wt7nYUwAs5JVQ5PGxag1eTEiXbtg9MxbNYJvwLik Kv3RqBJFxZte/iDxqMWuaEpjaAacBUh/L3Xp/svPz8yfsvKsCtS70untyeoQHWl+g2CC Lfsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693935916; x=1694540716; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IqXGOlLu3gN/v0rq7YAL68AsIb+5sflKBMQo5j5gXaQ=; b=Ylx+qgDCBCsx52yvZapyvL2iGAHYjYsN4gue6HAWMNTZC6+ccvJ+8l8av0LQq8OIyH wiNfNlvbcJezTpZOYQuR5I51mPnTuuJnun4NfMH1AX12z+nhUiRtyMqpppG1fR9fV+Bi +FTxfxgt6oD9S+M96TwphgCyt1bVCpcrRJSXFqdDXTWClt976fMMkoE8B47n+DY49WQr vpD/9qCeQRbTa/BsclWzN+T5sZXbhf9be6znTnNdkP29fXjxqjcEZnJ5TGcnE5akbqIG 5L3yHTjXsiX/lI/bxSbX4ExX6ZKJj39+PHTdAHKxlZRXmibn/V1uNWlIZHQFQ7r3N/xS 13HQ== X-Gm-Message-State: AOJu0Yw8t71+IWIYDea//ptLXgtNR4n+CrpvGfRSn8EO7j3woq57mywQ SKFt+ckZ5qkGzAkfJaJlyRrmfbe51zk= X-Google-Smtp-Source: AGHT+IE5fytYAdKbDwZFayDBqPWqwbZ9C1+V0g78efNfI731w6E5JQ7GOIRstNUVJeac1Nh7dVhuHg== X-Received: by 2002:a05:6402:514d:b0:522:3849:48db with SMTP id n13-20020a056402514d00b00522384948dbmr391080edd.3.1693935916116; Tue, 05 Sep 2023 10:45:16 -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 d3-20020a056402516300b005256771db39sm7438050ede.58.2023.09.05.10.45.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Sep 2023 10:45:15 -0700 (PDT) Message-ID: <500e824f-d644-491f-9ea5-ce1563dc543f@gmail.com> Date: Tue, 5 Sep 2023 19:45:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: internals@lists.php.net References: <64f684e0.810a0220.f4794.02bfSMTPIN_ADDED_MISSING@mx.google.com> Content-Language: en-US In-Reply-To: <64f684e0.810a0220.f4794.02bfSMTPIN_ADDED_MISSING@mx.google.com> 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) Hi Ben On 05/09/2023 03:31, Ben Ramsey wrote: > On 9/2/23 14:41, Niels Dossche wrote: >> I'm opening the discussion for my RFC "DOM HTML5 parsing and serialization support". >> https://wiki.php.net/rfc/domdocument_html5_parser > > > Thanks, Niels. This is much needed. > > >> This proposal introduces the DOM\HTML5Document class that extends the DOMDocument class. > > > In light of the recent discussion regarding casing of acronyms in class and method names [1], perhaps this proposal should consider `Dom\Html5Document` instead? I know this isn't consistent with the other `DOMDocument` classes, so maybe remaining consistent is better in this case. I briefly touched upon this in the "Naming" section of the RFC. The current active policy for class names (https://wiki.php.net/rfc/class-naming) requires us to use DOM & HTML5 instead of Dom & Html5. If Tim creates an RFC to change these rules, and that RFC is accepted, then I believe we should change the new classes & aliases to follow those new rules. Especially if both RFCs land during 8.4's dev cycle, then it shouldn't be a problem as there would be no BC concern about the name casing for ext/dom. > > >> I propose to use Lexbor. > > > Lexbor is licensed under the Apache-2.0 license [2]. In general, I don't think this will present any problems, as long as we adhere to the terms of the license (i.e., include the NOTICE file, etc.), but I did want to call attention to it in case bundling the source code of an Apache-2.0 project within a PHP-3.01 project is a cause for concern for anyone. > > > Cheers, > Ben > > > [1]: https://externals.io/message/120959 > [2]: https://github.com/lexbor/lexbor/blob/master/LICENSE > Kind regards Niels