A
Alan Silver
Hello,
I thought that ASP.NET 2.0 was supposed to output valid XHTML 1.0. I've
just spent a very frustrating time trying to fix all the validation
errors in framework-produced code.
I posted previously (but haven't had any replies yet) about the
framework adding a "name" attribute to the form, even though this
doesn't exist in XHTML 1.0.
I've now discovered that when you use a treeview, it adds the
following...
<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,param,TreeView_Process
NodeData,context,TreeView_ProcessNodeData,false);
}
// -->
</script>
which is invalid as the <script> tag needs a "type" attribute.
Anyone know if there's a way of getting it to produce valid XHTML? I've
hardly started, and I've already found quite a few validation issues.
I thought that ASP.NET 2.0 was supposed to output valid XHTML 1.0. I've
just spent a very frustrating time trying to fix all the validation
errors in framework-produced code.
I posted previously (but haven't had any replies yet) about the
framework adding a "name" attribute to the form, even though this
doesn't exist in XHTML 1.0.
I've now discovered that when you use a treeview, it adds the
following...
<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,param,TreeView_Process
NodeData,context,TreeView_ProcessNodeData,false);
}
// -->
</script>
which is invalid as the <script> tag needs a "type" attribute.
Anyone know if there's a way of getting it to produce valid XHTML? I've
hardly started, and I've already found quite a few validation issues.