Re: [Patch] tidy node and getParent
| From: | John Coggeshall | Date: | Wed, 25 Jan 2006 14:49:57 +0000 |
| Subject: | Re: [Patch] tidy node and getParent | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21685@lists.php.net to get a copy of this message | ||
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 ( )AAIoÕcìP&
> >> 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--
> <?php if (!extension_loaded("tidy")) print "skip"; ?>
> --FILE--
> <?php
> $x = tidy_parse_string("<body><div>Content</div></body>");
> var_dump($x->body()->child[0]->getParent()->name);
> ?>
> --EXPECT--
> string(4) "body"