[英]W3C validation Error: Bad value
The W3C validation report me this error: 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 attributesrc
on elementscript
: Illegal character in query: not a URL code point.错误:属性值错误
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
元素script
上的src
:查询中的非法字符:不是URL代码点。From line 166, column 1;
从第166行第1列开始; to line 166, column 230
到第166行第230列
mulario">↩<script type="text/javascript" src="http://form-integra.seekeo.com/tool-register-form/javascript?sit…Ids[]=2&myGender=2-1&theme[login]=0&fb=1&style_id=8417&tracker=GrandeSexoNegro"></script>
Syntax of URL:
URL的语法:
Any URL.任何网址。 For example:
/hello
,#canvas
, orhttp://example.org/
.例如:
/hello
,#canvas
或http://example.org/
。 Characters should be represented in NFC and spaces should be escaped as%20
.字符应以NFC表示,空格应转义为
%20
。
But I don´t understand where is the error and how to solve this. 但是我不知道错误在哪里以及如何解决这个问题。
How can fix this? 如何解决呢?
This is the complete URL: 这是完整的URL:
<div class="elformulario">
<script type="text/javascript" src="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=GrandeSe xoNegro"></script>
</div>
W3C validator maintainer here. W3C验证器维护者在这里。 The specific problem in that URL is with the square brackets it contains;
该URL的特定问题在于它包含的方括号; 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. 我计划更新验证器中的URL检查器,以实际报告它在URL中发现的特定非法字符,但是要进行细化还需要一段时间。
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 . 无论如何,修复该URL的方法是通过一个工具对它进行运行,该工具将对URL中不是有效URL代码点的任何字符进行百分比编码 (也称为“ URL编码”)。
One good online tool for percent-encoding URLs is Eric Meyer's URL Decoder/Encoder . Eric Meyer的URL Decoder / Encoder是一种用于对URL进行百分比编码的很好的在线工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.