【发布时间】:2011-08-22 12:23:49
【问题描述】:
我有以下文档类型的文档:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru">
模板声明如下:
<script id="tmpl-periods-options" type="text/x-jquery-tmpl">
{{each plans_array}}
<label><input type="radio" value="${$value.id}" name="pf-periods" {{if $value.selected}}checked="checked" {{/if}} />${$value.title}</label>
{{/each}}
</script>
http://validator.w3.org/ 向我显示有关在 <script> 标记内声明的 html 代码的错误。
有什么解决办法吗?
【问题讨论】: