Luke Smith Write today, wrong tomorrow

Target ‘in’ xhtml

I've been looking at making my websites more compliant, especially xhtml 1.1, using
ASP.NET v2.0. To ensure ASP.NET outputs XHTML 1.1 strict html you can add the
following element into the web.config file


xhtmlConformance mode="Strict" />>

However it doesn't seem to stop the AdRotator control rendering a target attribute
on an anchor tag. I never knew till today that the target attribute isn't actually
in HTML 4.01 Strict, XHTML 1.0 Strict and XHTML 1.1 Strict. So if you use this WebControl
you can't output Strict html.

comments powered by Disqus