简体   繁体   English

.NET 4违反W3C规则

[英].NET 4 breaking W3C rules

Hopefully a simple one. 希望是一个简单的。

I have a .NET 4 website built in Sitefinity. 我有一个在Sitefinity中构建的.NET 4网站。 The HTML that is rendered is creating the following hidden field and script: 呈现的HTML将创建以下隐藏字段和脚本:

<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: 问题在于它违反了W3C严格的准则,并显示以下消息:

line 75 column 52 - Error: document type does not allow element "input" here; 第75行第52列-错误:文档类型此处不允许元素“输入”; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag 缺少“ p”,“ h1”,“ h2”,“ h3”,“ h4”,“ h5”,“ h6”,“ div”,“ pre”,“ address”,“ fieldset”,“ ins”之一,“ del”开始标签

Any idea how I can make this right? 知道我该怎么做吗?

Thanks Al 谢谢Al

原来这是Sitefinity 4的事情.....现在都已修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM