W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: [Moderator Action] Scripts elimination

From: Dave Raggett <dsr@w3.org>
Date: Tue, 29 Feb 2000 14:45:09 +0000 (GMT Standard Time)
To: Suresh Dussa <suresh.dussa@wipro.com>
cc: Tidy <html-tidy@w3.org>
Message-ID: <Pine.WNT.4.10.10002291442240.280-100000@OEMCOMPUTER>
On Thu, 24 Feb 2000, Suresh Dussa wrote:

> hi,
> I am writing an application which is supposed to remove
> Java/VB/ASP/Php scripts from an HTML page. Can anyone please
> give me some insight as to how do I do the same using html-tidy
> software.?
> Presently I am going through Parser.c and PPrint.c files.

Basically this could be done via a modified printing routine
in pprint.c, but what are you going to do about scripts like

  if  some condition
      markup for use if the condition is true
      markup for use if the condition is false

You can't pick the right markup unless you know the value of the
condition. Other problems arise from computed values. In short, I
don't think this problem is tractable *in general*.


-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Tuesday, 29 February 2000 09:48:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC