阅读背景:

当您使用javascript填充需要孩子的元素时,如何编写Valid XHTML 1.0 Strict代码?

来源:互联网 

I'm running my site through the W3C's validator trying to get it to validate as XHTML 1.0 Strict and I've gotten down to a particularly sticky (at least in my experience) validation error. I'm including certain badges from various services in the site that provide their own API and code for inclusion on an external site. These badges use javascript (for the most part) to fill an element that you insert in the markup which requires a child. This means that in the end, perfectly valid markup is generated, but to the validator, all it sees is an incomplete parent-child tag which it then throws an error on.I'm running my site through the W3C's validator




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: