I have a site that I've tried to make compliant to XHTML 1.0 Strict. The doctype has been declared accordingly and I've set the web.config with the following:
<system.web>
<xhtmlConformance mode="Strict"/>
</system.web>
My problem now lies here. I have a BulletedList server control whose DisplayMode is set to BulletedListDisplayMode.HyperLink.
This control is populated with entries from a web.sitemap xml file the first of which is disabled (enabled set to false in code behind). This consequently outputs an anchor tag with a disabled attribute. However, this is not compliant.
<ul id="example">
<li class="first"><a disabled="disabled">test1</a></li>
<li><a href="#">test2</a></li>
</ul>
When I validate this against the W3 validator, it fails because of this. Is this is bug? Given the set xhtml conformance, I would have expected the anchor tag to not have rendered at all.
I am simply trying to make the first item in the list to appear as plain text rather than a disabled link. Any suggestions?