Re: [PHP-DEV] Add tidyNode::getNextSibling() and tidyNode::getPreviousSibling()

2024-07-21 Thread Gina P. Banyard
On Sunday, 21 July 2024 at 12:24, Niels Dossche wrote: > Hi internals > > I opened a PR to add the getNextSibling() and getPreviousSibling() methods to > the tidyNode class. > As the class is final, this has no BC break concerns. > > The reason for adding this is that it's inconvenient to walk

[PHP-DEV] Add tidyNode::getNextSibling() and tidyNode::getPreviousSibling()

2024-07-21 Thread Niels Dossche
Hi internals I opened a PR to add the getNextSibling() and getPreviousSibling() methods to the tidyNode class. As the class is final, this has no BC break concerns. The reason for adding this is that it's inconvenient to walk the tree solely using the existing getParent() method and ->child pro