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 2771 - <script>'s should not be validated
Summary: <script>'s should not be validated
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: Macintosh MacOS X
: P2 minor
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL: http://axman6.homeip.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 12:22 UTC by Alex Mason
Modified: 2006-01-27 08:35 UTC (History)
0 users

See Also:


Attachments

Description Alex Mason 2006-01-26 12:22:34 UTC
on my site a have quite a bit javascript, and when i try to validate my page as xhtml strict, it searches 
inside the script tages. as i'm using this script to fill in a div (ajax style :D). my real problem is that since 
there are for loops in it, it thinks that the "<"'s are the beginning of a new element. i just want my site to 
pass :'( but i won't over a silly thing like this. anyway, well done on everything, keep up the standards* and  
you guys are awesome :D
Comment 1 Bj 2006-01-26 12:26:42 UTC
Use an external script, use HTML instead of XHTML, or use one of the escaping 
tricks like

  <script ...>
  // <![CDATA[
  ...
  // ]]>
  </script>

HTML Tidy will help with this. The Validator simply implements the HTML and 
XHTML specifications, so your content is indeed incorrect if the Validator 
complains.
Comment 2 Alex Mason 2006-01-27 08:35:58 UTC
thankyou very much for the help, i'm now happy let you know that my site is now xhtml 1.1 
compliant. :D Al.(In reply to comment #1)
> Use an external script, use HTML instead of XHTML, or use one of the escaping 
> tricks like
> 
>   <script ...>
>   // <![CDATA[
>   ...
>   // ]]>
>   </script>
> 
> HTML Tidy will help with this. The Validator simply implements the HTML and 
> XHTML specifications, so your content is indeed incorrect if the Validator 
> complains.