Re: Tidy & PHP5
| From: | Georg Richter | Date: | Mon, 01 Dec 2003 21:11:10 +0000 |
| Subject: | Re: Tidy & PHP5 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5946@lists.php.net to get a copy of this message | ||
> before bundling i'd like to see the api refined...
>
> right now it's not possible to work with more than one html-doc at a
> time. (tidy_parse_file() does not return a resource to the internal
> tidy doc, so you can only have one doc at a time)
Yes, Thies is right here! But
s/resource/object :)
I don't know the tidy api very well, but wouldn't be the normal way to have an
object for a Document (which was created by tidyCreate) instead to use a
global value for? So you can work with multiple documents, and you also can
add additional (userland) functionality. This would be the "normal" behaviour
for new php5 extensions (simplexml, sqlite, mysqli, mono, ...).
Just my 0,024$
Georg