Funny Frontend
Funny Frontend

Reputation: 3925

W3C validation Error: Bad value

The W3C validation report me this error:

Error: Bad value http://form-integra.seekeo.com/tool-register-form/javascript?site_id=1273912&myCh=2&chIds[]=2&myGender=2-1&theme[login]=0&fb=1&style_id=8417&tracker=GrandeSexoNegro for attribute src on element script: Illegal character in query: not a URL code point.

From line 166, column 1; to line 166, column 230

mulario">↩<script type="text/javascript" src="http://form-integra.seekeo.com/tool-register-form/javascript?sit…Ids[]=2&amp;myGender=2-1&amp;theme[login]=0&amp;fb=1&amp;style_id=8417&amp;tracker=GrandeSexoNegro"></script>

Syntax of URL:
Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.

But I don´t understand where is the error and how to solve this.

How can fix this?

This is the complete URL:

<div class="elformulario"> 
<script type="text/javascript" src="http://form-integra.seekeo.com/tool-register-form/javascript?site_id=1273912&amp;myCh=2&amp;chIds[]=2&amp;myGender=2-1&amp;theme[login]=0&amp;fb=1&amp;style_id=8417&amp;tracker=GrandeSe xoNegro"></script>
</div>

Upvotes: 1

Views: 3862

Answers (1)

sideshowbarker
sideshowbarker

Reputation: 87994

W3C validator maintainer here. The specific problem in that URL is with the square brackets it contains; the "[" and "]" characters. Those aren’t valid URL code points per the URL Standard.

I plan to get the URL checker in the validator updated to actually report the particular illegal characters it finds in URLs but it will be a while yet before I can get that refinement made.

Anyway the way to fix that URL is to run it through a tool that will percent encode (aka “URL encode“) any characters in the URL that aren’t valid URL code points.

One good online tool for percent-encoding URLs is Eric Meyer’s URL Decoder/Encoder.

Upvotes: 2

Related Questions