.NET 4 违反了 W3C 规则
希望是一个简单的。
我有一个在 Sitefinity 中构建的 .NET 4 网站。呈现的 HTML 正在创建以下隐藏字段和脚本:
<input type="hidden" name="ctl00$ctl04" id="ctl04" />
<script type="text/javascript">
//<![CDATA[
Sys.Application.setServerId("ctl04", "ctl00$ctl04");
Sys.Application._enableHistoryInScriptManager();
//]]>
</script>
问题是它违反了 W3C 严格准则,并显示消息:
第 75 行第 52 列 - 错误:文档类型不允许此处的元素“输入”;缺少“p”、“h1”、“h2”、“h3”、“h4”、“h5”、“h6”、“div”、“pre”、“address”、“fieldset”、“ins”之一,“del”开始标签
知道如何才能做到这一点吗?
谢谢 铝
Hopefully a simple one.
I have a .NET 4 website built in Sitefinity. The HTML that is rendered is creating the following hidden field and script:
<input type="hidden" name="ctl00$ctl04" id="ctl04" />
<script type="text/javascript">
//<![CDATA[
Sys.Application.setServerId("ctl04", "ctl00$ctl04");
Sys.Application._enableHistoryInScriptManager();
//]]>
</script>
The problem with this is it is breaking W3C strict guidelines, with the message:
line 75 column 52 - Error: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
Any idea how I can make this right?
Thanks
Al
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
原来这是 Sitefinity 4 的问题......现在全部修复了。
It turned out that this was a Sitefinity 4 thing.....all fixed now.