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

RE: Script tags

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Fri, 2 Feb 2001 10:29:56 +0100
To: <html-tidy@w3.org>
Message-ID: <HBECLJECMMGNJGANOJEPIEPLCCAA.bertilow@hem.passagen.se>
Mark Renouf:

> Script tags with src="foo.js" are treated as empty and pruned.
> I'm looking at the code now to see if it's possible to have tidy leave 
> them alone if they have the src attribute set. Has anyone looked 
> into this?

I've never had this problem. Could you show us an example?

One simple but hackish way of avoiding the problem could be to add "//" 
as the only content of such "script" elements.

> Also, I made a small change to support and output format that works with 
> UltraEdit (so you can double click the error and be brought to the 
> correct line). I could put together if anyone's interested.

I'm interested!

#####################################################################
                          Bertilo Wennergren
                  <http://purl.oclc.org/net/bertilo>
                         <bertilow@chello.se>
#####################################################################
 
Received on Friday, 2 February 2001 04:29:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT