Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124536 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 4D90E1A00B7 for ; Sun, 21 Jul 2024 14:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721573603; bh=bV7H61tcW4zyr822ia8MHZCgYfNsEV29HsFUBxNAlNI=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=fsRJhH6AIBfaLldxTmNUOlvaSg+3lWEFwGB6DOHFmalknAxO2q48vewnrRCDJY+KI MTUH+rh2uZtjzkZ2hbpE1L19sNgvzw+k7quGX0ATktwLufNt4nZAovb/lw2qOKUADa 1i+wOjgZS008mzS3DvGYXFBsJ88y33lNLEE67Xwwg89W6AmxxQR24jlH2lXBQQsLJl lkY7U4072T33szZ5MYdR8/A0YkSaKlB6jM+QJuDuUI7tjNd6Q7WfrKHuobzTVUjVnL QvfzpNr7FjEjyKR55yZKQf5cmMVXQdtz/tMAJWAo/CEu7ZKjb/0trdhlCBcL2M47wG L6PJCANCV9t2Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E8237180039 for ; Sun, 21 Jul 2024 14:53:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 21 Jul 2024 14:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1721573506; x=1721832706; bh=bV7H61tcW4zyr822ia8MHZCgYfNsEV29HsFUBxNAlNI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=gapDzQweUec+3CzmNDXgFsqLGNP3NADRzi56+7IWfBSC/jo8qNTARSDlH5u8ZUc3E VaMS3acvWB/EEFxe13q6HDQAeXyEiptQhgqrvVKNO7K9zro82GtDz2p6Qq9Y/vDYja qlvQ5SgWtkRjUXszmgwcJIZBnqGKI7J6gdC1b/hXdOqVDwLPHtJwVfRHvSfDaPb64c nuG5o2FtikDv50GbsIlH/RNgVupsIcbMDQ0oU/ce+2/zOssPY8Q4+jNdFqxQaaprZA 1ur07mUdN0qT7G80s5mJs15KZtjTkO7FolCijDPC/87+KcqjwvPoZAJnY3OG2UmXnI /0Qqr9zK729og== Date: Sun, 21 Jul 2024 14:51:33 +0000 To: Niels Dossche Cc: PHP internals Subject: Re: [PHP-DEV] Add tidyNode::getNextSibling() and tidyNode::getPreviousSibling() Message-ID: <4OwOBcK1vaq2GrG8iGlfXqW9wDq0cu4YRfLNGWuUHoU1fwjSj2r3QloQW_CIHgKXutwgOmIxQbIQTXko8yRBDP7HRrzqUGcow3aNBW6WUF4=@gpb.moe> In-Reply-To: References: Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 9ce965aefcb2db694b7725194ed4e59f4e589416 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Sunday, 21 July 2024 at 12:24, Niels Dossche w= rote: > Hi internals >=20 > I opened a PR to add the getNextSibling() and getPreviousSibling() method= s to the tidyNode class. > As the class is final, this has no BC break concerns. >=20 > The reason for adding this is that it's inconvenient to walk the tree sol= ely using the existing getParent() method and ->child property. >=20 > Since it's a tree anyway, methods to obtain the previous or next sibling = are natural en convenient. >=20 > Just sending this mail to see if anyone objects to this. > PR link: https://github.com/php/php-src/pull/15047 >=20 > Kind regards > Niels I think this makes sense and is a nice convenience addition. Best regards, Gina P. Banyard