Re: [Patch] tidy node and getParent
| From: | Andi Gutmans | Date: | Thu, 23 Mar 2006 18:30:41 +0000 |
| Subject: | Re: [Patch] tidy node and getParent | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22565@lists.php.net to get a copy of this message | ||
Ilia, but don't worry, he's a good looking guy :) hehe
At 03:16 AM 3/23/2006, Markus Fischer wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, okay, so with whom I've to sleep to get this patch in? :) cheers, - - Markus Markus Fischer wrote: Hi, Antony Dovgal wrote:As written in the other email, the path is online at http://www.zend.com/zend/week/pat/pat52.txt .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).Thanks, I've attached a simple test to this email. - Markus ------------------------------------------------------------------------ --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" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEIoOg1nS0RcInK9ARAiQoAKCTDFX2S96rE9jj8dfplaaSWBbZDQCbBEwU xkG9JkMubeZN33BCrWh/Deg= =1niF -----END PGP SIGNATURE-----Also, some .phpt tests testing new method would be great.