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.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.