- From: Randy Waki <rwaki@sunscreen.whizbang.com>
- Date: Mon, 22 Nov 1999 11:04:33 -0700
- To: <Todd_Lewis@unc.edu>
- Cc: <html-tidy@w3.org>
Todd M. Lewis wrote: > > Does this mean the old trick of > hiding Javascript in HTML comments is not going to work in XML-ized > pages? Can you even have Javascript in XML-ized pages? Good question! It sure looks like Javascript's -- operator is illegal in XML comments. I'm not sure what Tidy should do. Some options that come to mind (applicable only when the output is XML, of course): - Corrupt the script by changing hyphen+hyphen to hyphen+space. - Output illegal XML by leaving hyphen+hyphen as is. - Parse comments for <script> elements and move them out of the comment. Randy
Received on Monday, 22 November 1999 13:07:12 UTC