- From: Charles Reitzel <creitzel@rcn.com>
- Date: Tue, 11 Feb 2003 10:17:19 -0500
- To: "Renjith K.V" <renjith@iceindia.com>
- Cc: html-tidy@w3.org
Great question. One thing Tidy is _not_, nor will it become in the
foreseeable future, is a Javascript parser. That said, I think you could
do what you want much more easily with a Regex library and by separating
the Javascript from the markup. Thus, my lo-tek(tm) suggestion, would be
to keep your Javascript in a separate file, which you can generate as
needed using your own code.
hth,
Charlie
At 12:53 PM 2/11/2003 +0530, Renjith K.V wrote:
>I need to update script section of the html through the tidylib
>for eg.
>
><SCRIPT language=JavaScript1.2>
>function funct1()
>{
>}
></SCRIPT>
>
>should be updated to
>
><SCRIPT language=JavaScript1.2>
>function funct1()
>{
>}
>function new_function()
>{
>}
></SCRIPT>
>
>ie I need to add one more function programmatically to script section of
>html document .
>
>can i use function
>tidyNodeIsSCRIPT(
><structTidyNode.htm>TidyNode tnod ); and proceed
>please help me
>
>
>
>Renjith.
>
Received on Tuesday, 11 February 2003 10:08:52 UTC