Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75854 invoked by uid 1010); 25 Jan 2006 14:52:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75839 invoked from network); 25 Jan 2006 14:52:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2006 14:52:23 -0000 X-Host-Fingerprint: 69.56.217.178 unknown Linux 2.4/2.6 Received: from ([69.56.217.178:58514] helo=coggeshall.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B5/E0-06819-6A097D34 for ; Wed, 25 Jan 2006 09:52:22 -0500 Received: from [192.168.1.69] (69-162-207-15.bflony.adelphia.net [69.162.207.15]) (authenticated bits=0) by coggeshall.org (8.12.8/8.12.8) with ESMTP id k0PEL6Cj006331 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 25 Jan 2006 08:21:07 -0600 To: Markus Fischer Cc: Antony Dovgal , Jani Taskinen , Andi Gutmans , internals@lists.php.net, iliaa@php.net In-Reply-To: <43D789A5.6060402@fischer.name> References: <42D78B4A.7080208@fischer.name> <42D78B4A.7080208@fischer.name> <5.1.0.14.2.20050715120049.02739670@localhost> <431602E7.5050500@fischer.name> <43A00874.8000706@fischer.name> <43D77A82.7030901@fischer.name> <43D77CDE.3060602@zend.com> <43D789A5.6060402@fischer.name> Content-Type: text/plain Date: Wed, 25 Jan 2006 09:49:57 -0500 Message-ID: <1138200597.4102.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-6) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [Patch] tidy node and getParent From: john@coggeshall.org (John Coggeshall) Sorry this fell off my radar. Is getParent() a new function to tidy? I may have to include some lib checks in my config... John On Wed, 2006-01-25 at 15:22 +0100, Markus Fischer wrote: > Hi, > > Antony Dovgal wrote: > > On 25.01.2006 16:17, Markus Fischer wrote: > >> the patch is in the bug report ( http://bugs.php.net/bug.php?id=34023 > >> ) or do you meant something else? > > > > Jani meant that it would be better to put this patch as a downloadable > > file (applying copy-pasted patches causes some problems with > > tabs/whitespaces). > > As written in the other email, the path is online at > http://www.zend.com/zend/week/pat/pat52.txt . > > > Also, some .phpt tests testing new method would be great. > > Thanks, I've attached a simple test to this email. > > - Markus > plain text document attachment (tidy_019.phpt.txt) > --TEST-- > Test getParent() > --SKIPIF-- > > --FILE-- > $x = tidy_parse_string("
Content
"); > var_dump($x->body()->child[0]->getParent()->name); > ?> > --EXPECT-- > string(4) "body"