W3C home > Mailing lists > Public > www-validator@w3.org > June 2010

Re: ILLEGAL_CHARACTER in QUERY in CSS and JS tags

From: Michael(tm) Smith <mike@w3.org>
Date: Mon, 14 Jun 2010 20:28:01 +0900
To: "Mr. Phillip R. Boushy" <phillip.boushy@philtechlv.com>
Cc: www-validator@w3.org
Message-ID: <20100614112800.GA46317@sideshowbarker>
"Mr. Phillip R. Boushy" <phillip.boushy@philtechlv.com>, 2010-06-11 11:00 -0700:

> Website URL: http://bikramgreenvalley.com/Main_Content/FAQ.php
> 
> I receive the following validation output error:
> Line 10, Column 175: Bad value
> /Parts/GenerateFiles/MakeFiles.php?name=ToggleDL&type=text/javascript&path=Parts/ToggleDL&js[]=ToggleDL
> for attribute src on element script: ILLEGAL_CHARACTER in QUERY.
> [...]
> I cannot tell if I need to escape a character in my url somehow,
> or if this is an error with the HTML5 Validation engine.

It's not an error in the HTML5 validation engine. The bracket
characters are not allowed in URIs or IRIs, so you need to escape
them using %5B%5D instead.

> I did not receive an error in the XHTML 1.1 Validator.

I guess that's probably because the XHTML 1.1 Validator does not
check URIs and IRIs to see if they conform to the URI and IRI
specs. But the HTML language does require value of the src
attribute of a script element to conform to the URI and IRI specs;
so the HTML5 validator includes a check to ensure that it does
conform.

  --Mike

-- 
Michael(tm) Smith
http://people.w3.org/mike
Received on Monday, 14 June 2010 11:28:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:41 GMT