Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107144 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72494 invoked from network); 16 Sep 2019 10:24:26 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 16 Sep 2019 10:24:26 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id B31842CA62A for ; Mon, 16 Sep 2019 01:01:16 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Mon, 16 Sep 2019 01:01:16 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id k20so7543119oih.3 for ; Mon, 16 Sep 2019 01:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2HgP+F0s+IemcBwZBuFBBcTMI2TOMwApATyNI4DiM0Y=; b=nBu/SyFsRiIn6tMzWbt3JNatdFiUhq2OUnVn2neJHSjG+5vtqJ0cK5LpohGHBck/IQ PBrc7qNJtHm//LdFBeHnS1xpBFYaQ/ouj9xP0EWYUUly5M4JuFHkAiHpWkZ5HOZKxsXs H1jTU0JcEkjCIQ1UL2nEiE79HSConb2rPN+GbR1/kYKjKnkIA/VNjaJjJPCIiZG83JFy qaNV/5G2TMtBijMkrOpbzQsGNv8bAA+q86kv5E9XELAX6uCE93oM6xJrTzS2OY8/r6S0 IJcAhd6lk+r1ikmeT+vaBeSrB8GnwQwdqblvcT9GLHRLT0Hkn4KZKZD/U3cNvpzB8+wE LCYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2HgP+F0s+IemcBwZBuFBBcTMI2TOMwApATyNI4DiM0Y=; b=US6dHNnWvCviL1hikACDW8UMXZ4YIOdyqKlh4YCy/bRehcy2b90CY6rjmzUgq/AsE9 NCCafgZVPAmLcyI+ibwUnjfvyNiZ0f/h2aESouRZHrBn4GKNz33blubiM4Nwp6impbUx +gnf5BA6PI1pMrkyLM07MX45X5stxdpN07iygyp6DWIzxAK1m2zWvuAnLocq42dphbTX h5Ke2QhRvRnK6enuTKY8bcZWP74uXeQl/3YJo3TrNYS+l+IVm1CHeDSoVWLsJ6GwhFMO s8xjfI4NoXxqKL3ta57u0J1INEnTvu0Ykz90Z4bfsvBWdTjPNTGNiT3Mg9kCqh14agwV +1Hg== X-Gm-Message-State: APjAAAUUsMJYVWn4nNGUmgR9oSINkCDv/tPNdHiJTHt50weR5nLBf0/W VRrKWHiykTmLf2ZWU8vLxPfGijAN X-Google-Smtp-Source: APXvYqwP8VJJ2bTjoEMUoOWfGbR7AOW3bdicNfGuqtLh1ArI92U2s0cq5IDJlsT6XOdc5ArfVWDqHw== X-Received: by 2002:aca:4d43:: with SMTP id a64mr13324490oib.159.1568620875678; Mon, 16 Sep 2019 01:01:15 -0700 (PDT) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com. [209.85.167.179]) by smtp.gmail.com with ESMTPSA id p25sm2506354oto.73.2019.09.16.01.01.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Sep 2019 01:01:15 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id a127so7548269oii.2 for ; Mon, 16 Sep 2019 01:01:15 -0700 (PDT) X-Received: by 2002:aca:4942:: with SMTP id w63mr4263841oia.129.1568620874879; Mon, 16 Sep 2019 01:01:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 16 Sep 2019 09:00:38 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Benjamin Eberlei Cc: PHP Internals , Thomas Weinert Content-Type: multipart/alternative; boundary="00000000000008ed8d0592a702b3" X-Envelope-From: Subject: Re: [PHP-DEV] Re: [RFC] DOM Living Standard API From: phpmailinglists@gmail.com (Peter Bowyer) --00000000000008ed8d0592a702b3 Content-Type: text/plain; charset="UTF-8" Hi Benjamin, I like the proposal. On Mon, 16 Sep 2019 at 01:40, Benjamin Eberlei wrote: > I am asking about feedback especially on the section "Implementation > Details", that explains some key differences to "PHPify" the DOM Living > Standard API to PHP and ext/dom. Do you have any comments about the > reasonability of the choices? > I don't have feedback, other than to ask what choices other languages have made when bringing in the DOM Living Standard API? > Also the section on "Not adopting Nodes for now" is new and I need some > feedback on this issue: To keep the proposal slim with respect to changing > existing behavior, the improved behavior of the DOM Living Standard over > Level 1-2 tof automatically adopting nodes instead of throwing a WRONG > DOCUMENT DOMexception is not considered for now. Do you think this is a > reasonable approach to go forward with? > If I understand correctly, the issue is the behaviour of a method has changed significantly. If not implemented in PHP 8, where BC breaks are expected, when would be a better time? Would deviating and implementing the new behaviour with a different method name e.g. appendAndAdoptChild(); or guarded by a version flag (so users choose whether they want the 'Living' behaviour or the 'Level 2' behaviour in this method) be options? Peter --00000000000008ed8d0592a702b3--