2015-09-25 95 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