From: SourceForge.net <no...@so...> - 2010-03-19 10:13:40
|
Bugs item #2973054, was opened at 2010-03-19 10:31 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=2973054&group_id=13153 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tidy functionality Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: script within script problem Initial Comment: Jtidy isn't able to handle situations like : <html> <head> <title>test title</title> </head> <body> <script type="text/javascript"> <!-- document.write('<script></scr'+'ipt>'); //--> </script> </body> </html> The tidied result is : <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="HTML Tidy for Java (vers. 2009-12-01), see jtidy.sourceforge.net" name="generator"/> <title>test title</title> </head> <body> <script type="text/javascript"> <!-- document.write('<script></scr'+'ipt>'); //--> </script> </body> </html> </script> </body> </html> Have anyone an issue ? Thanks Christophe ---------------------------------------------------------------------- Comment By: Christophe Scholly () Date: 2010-03-19 11:13 Message: The problem seems to be in the getCDATA method of the Lexer class. The problem don't occur when you put an old version of getCDATA in the Lexer. The bug only occur in the last version of JTidy (938) because of the support of "scripts into scripts". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=2973054&group_id=13153 |