2015-09-25 93 views
1

的W3C验证报告我这个错误:W3C验证错误:错误值

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 .

但我不明白的地方是错误,以及如何解决这个问题。

如何解决这个问题?

这是完整的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> 
+2

“查询中存在非法字符” - 这告诉所有人。检查您的URL回肠字符 – bksi

+1

哪里是“查询中的非法字符”? –

+1

请在此处输入src的URL。 – LEQADA

回答

1

W3C校验维护这里。该URL中的具体问题是它包含的方括号; “[”和“]”字符。根据URL标准,这些不是valid URL code points

我打算让验证程序中的URL检查程序更新以实际报告它在URL中找到的特定非法字符,但在我能够获得该细化之前还需要一段时间。

无论如何,解决该URL的方法是通过一个工具运行它,该工具将percent encode(又名“URL编码”)URL中不是valid URL code points的任何字符。

一个很好的网上百分比编码URL工具是Eric Meyer的URL Decoder/Encoder