【发布时间】:2011-01-03 17:00:15
【问题描述】:
我正在查看 XHTML doctype 上的一些站点代码,从我看到的框架是 ASP.net。 HTML 中的 ID 中有一个“$”。
例如:
<img id="$ct100templateContent$SectionPanel1$ctl01$ctl02ctl00_templateContent_SectionPanel1_ctl01_ct999img" src="this.jpg"/>
从 W3C 语义的角度来看,“$”在 ID 或类中无效。 ID 和类在 XHTML 文档类型中只能包含字母数字字符。
“$”是引用 Web 控件或模板项的 ASP.net 命名约定吗?
【问题讨论】:
-
去看看,MS 会超过标准。
标签: asp.net xhtml w3c-validation