Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104978 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72867 invoked from network); 28 Mar 2019 15:26:46 -0000 Received: from unknown (HELO mail-lj1-f178.google.com) (209.85.208.178) by pb1.pair.com with SMTP; 28 Mar 2019 15:26:46 -0000 Received: by mail-lj1-f178.google.com with SMTP id v13so17439669ljk.4 for ; Thu, 28 Mar 2019 05:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vARlDEQby5hNptp8imuLnAGQ1kpe9HAQBQWBeIIrzgc=; b=gWFkJ2Ws9+kgLaNunCGOMZ/FAtpFjsH8FkcNvM8by7q2M77DuXez2rHCg4K69XzX5A oUMLAMGbQXYECZVkF3AN0kg3v8vhexXX+xbSRwKDjnPExE4WTqCri9mgNBQmehYXapPx GB2g9kUTbkyhf5dWh3jo87w2b2wTdSu+Xa+Wqw/5ac6bc4426JWCeHmb0Q/4RBVdkmMG a27//dqnZy8gFX50+okex5Jxd6zqkTTm7ap9dvHNzrSFrn1vQk/rW4A7oDPW4PTAou0+ PB85y+PmG92aVSjmaQoQokdVTRczDIohhuCH8tmoPznUOM8YhVjlAqsv5qjcfA7pVFkw /Fbg== 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=vARlDEQby5hNptp8imuLnAGQ1kpe9HAQBQWBeIIrzgc=; b=OyA6lKv9SL9P9IHLOvrjpMvtptcSW4RMUhVS4TLQ76roDt2k0ktyBx/5EGb0DZTYfA TDN7/D+Ij5nfKrRKmmRL/lSf5+2sg4WRivpUiGXUPslNNptI4Hw6qwO7GbUjpyYOkooS 6Ees3eaV32TleRCbFExNXJcVurto+a6/ew6eMah3K1/wy1dzmSjSVHL8YnpR4OInLcsz 9SBa8U+Bu9tCBEnF9HN+W4vfooilZpphISCIzMCJn0CFXKPxqHhqMLYkVL0wknA43UGW A18sggEhM4XKn4QYIXiICcDqYsI2NA/xPHiamLPNCEKFBW2x18EAbHV25Sc6q8qY83iJ GGfQ== X-Gm-Message-State: APjAAAWuuupkJy20Epn4lMdQ4J2Kov7XuTnvHLVtDlsUtnBOn/Izpr7x w7TbVPTHwMLGZ2FnTB6Jkz2d1cKTXk4k/ndgmXk8QQ== X-Google-Smtp-Source: APXvYqxjiTwb00FffkkdcTPq1CJanUxv0TLaGm1fOdAyhV6dw+e/s00KN5zpxrkmRu4Nw/vET+EMVvl4lFkieinjkxA= X-Received: by 2002:a2e:542:: with SMTP id 63mr23084425ljf.144.1553775638755; Thu, 28 Mar 2019 05:20:38 -0700 (PDT) MIME-Version: 1.0 References: <0df89058-0878-48b3-3f67-d8960e84a912@cdatazone.org> In-Reply-To: <0df89058-0878-48b3-3f67-d8960e84a912@cdatazone.org> Date: Thu, 28 Mar 2019 13:20:27 +0100 Message-ID: To: Rob Richards Cc: Claude Pache , PHP Internals , Thomas Weinert Content-Type: multipart/alternative; boundary="0000000000000252300585269559" Subject: Re: [PHP-DEV] [RFC] DOM Living Standard API From: kontakt@beberlei.de (Benjamin Eberlei) --0000000000000252300585269559 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2019 at 12:57 PM Rob Richards wrote: > On 3/23/19 5:33 AM, Benjamin Eberlei wrote: > > On Fri, Mar 22, 2019 at 11:26 PM Claude Pache > > wrote: > > > >> Beware that behaviour of some methods should differ between HTML and > >> non-HTML documents. For instance, the RFC says: > >> > >>> DOMElement=E2=86=92nodeName casing was previously undefined, it is no= w changed > >> to always uppercase. > >> > >> However, the DOM Living Standard says it is uppercase (even, > >> ASCII-uppercased) only in the HTML namespace. For XML documents, the > casing > >> is not modified. > >> > > You are absolutely right, i missed that in the convoluted description o= f > > the behavior :-) I need to rethink how this would fit with the > > compatibility flags, it might cause a problem given that loadHTML for > > example doesn't automatically put the elements into HTML namespace. I > > updated the RFC to reflect this. > > > > To be honest, the compatibility thing is what i am least sure in, > > especially if this should be combined with the new methods + removal of > > unused code or should be handled separately. > > > > > >> =E2=80=94Claude > >> > >> > I'm still running through all the changes but my suggestion would be to > start with only new methods and then deal with the rest. At least with > the new functionality you don't cause any unintended BC breaks. > Yes, thinking about this more I am coming to this conclusion myself :-) I think the DOMImplementation and compatibility layer changes should probably not be part of this RFC, it should only be about adding the new functionality. However, we will break BC anyways I realized with the registerNodeClass, if you provide a subclass for DOMElement that implements next/previousElementSibling (for example) with a __get overwrite, then this RFC adding this method potentially with a slightly different behavior will cause a BC break for users subclassing via registerNodeClass. > > Rob > > --0000000000000252300585269559--