This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7738 - Validator checks /*commented-out*/ javascript code
Summary: Validator checks /*commented-out*/ javascript code
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC other
: P4 minor
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: (Local file, not yet online)
Depends on:
Reported: 2009-09-28 01:36 UTC by Jesse Hammond
Modified: 2009-09-28 19:24 UTC (History)
0 users

See Also:


Description Jesse Hammond 2009-09-28 01:36:32 UTC
The validator detected that a javascript function was writing invalid HTML code to a SPAN. I commented that code out so I could refer back to it if need be, then wrote the correct code. Even though the old code was commented out, though, the validator was still registering it as erronous code. I had to completely delete the code instead.
Comment 1 Ville Skyttä 2009-09-28 19:24:14 UTC
Validator does not execute or interpret javascript at all, it doesn't know what the (client side) script writes or knows anything about javascript comments, it just checks the HTML validity.  Without a URL to look at, I guess what you're seeing is quite likely covered by the validator's FAQ entry on javascript: