[英]How do I pass W3 validation for Google checkout url?
When I do validate the page in W3 validation, I got few errors with below code, 当我在W3验证中验证页面时,以下代码出现了一些错误,
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="https://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=xxxxxxxxx&w=168&h=44&style=white&variant=text&loc=en_US" />
Errors are as follows, 错误如下,
- cannot generate system identifier for general entity "w"
无法为通用实体“ w”生成系统标识符
- reference to entity "w" for which no system identifier could be generated
引用实体“ w”,无法为其生成系统标识符
- general entity "h" not defined and no default entity
通用实体“ h”未定义,没有默认实体
- reference to entity "h" for which no system identifier could be generated
引用实体“ h”,无法为其生成系统标识符
- general entity "style" not defined and no default entity
未定义一般实体“样式”,也没有默认实体
- reference to entity "style" for which no system identifier could be generated
对实体“样式”的引用,无法为其生成系统标识符
- general entity "variant" not defined and no default entity
未定义一般实体“变体”,也没有默认实体
- reference to entity "variant" for which no system identifier could be generated
引用实体“变体”,无法为其生成系统标识符
- general entity "loc" not defined and no default entity
通用实体“ loc”未定义,没有默认实体
- reference to entity "loc" for which no system identifier could be generated
引用实体“ loc”,无法为其生成系统标识符
This is the only errors comes from the URL; 这是唯一的错误来自URL。 is there way to pass W3 validation for this URL.
有没有办法通过此URL的W3验证。
You need to escape the ampersands ( &
) to their HTML entity counterpart &
您需要将&符号转义为
&
HTML实体对应的&
New code: 新代码:
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="https://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=xxxxxxxxx&w=168&h=44&style=white&variant=text&loc=en_US" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.