Re: Tidy & PHP5
| From: | Marcus Boerger | Date: | Mon, 01 Dec 2003 21:58:01 +0000 |
| Subject: | Re: Tidy & PHP5 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5953@lists.php.net to get a copy of this message | ||
Hello Georg,
Monday, December 1, 2003, 10:11:10 PM, you wrote:
>> 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, ...).
I had the idea of a tidy wrapper long ago too. So i am +1
But i also would like to see it with an object (php 5) api and i'd like to
see an output handler, too.
--
Best regards,
Marcus mailto:helly@php.net