Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5953 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79399 invoked by uid 1010); 1 Dec 2003 21:57:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79375 invoked from network); 1 Dec 2003 21:57:57 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 1 Dec 2003 21:57:57 -0000 Received: from [192.168.1.100] (p508EA178.dip.t-dialin.net [80.142.161.120]) by shiva.mind.de (Postfix) with ESMTP id 9652397C5F; Mon, 1 Dec 2003 22:57:56 +0100 (CET) Date: Mon, 1 Dec 2003 22:58:01 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <164793390062.20031201225801@marcus-boerger.de> To: Georg Richter Cc: Thies C.Arntzen , PHP Internals In-Reply-To: <200312012211.11391.georg@php.net> References: <200312010845.23909.ilia@prohost.org> <200312011839.57724.georg@php.net> <55C160D0-2426-11D8-B273-000393C4A12A@thiesos.org> <200312012211.11391.georg@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Tidy & PHP5 From: helly@php.net (Marcus Boerger) 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