This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
here is a *very* simple example showing the bug. It happens on XHTML 1.0 transitional, i did not tried on other versions. the --) into the javascript is interpreted as the end tag for comment instead of --> really at the end of the javascript, which break any html page that contains a "--" operator followed by a ")" Thanks <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Some title</title> </head> <body> <script type="text/javascript"> <!-- for(i = to_fill.options.length; i >= 0; i--) alert(i); // --> </script> </body> </html>
http://www.w3.org/TR/xhtml1/#C_4