<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dave Riley &#187; validator</title>
	<atom:link href="http://daveriley.com/tag/validator/feed/" rel="self" type="application/rss+xml" />
	<link>http://daveriley.com</link>
	<description>Welcome to Dave Riley&#039;s Blog</description>
	<lastBuildDate>Sun, 04 Dec 2011 13:11:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Image button found guilty of not being valid xhtml horror!!!</title>
		<link>http://daveriley.com/2009/07/14/image-button-found-guilty-of-not-being-valid-xhtml-horror/</link>
		<comments>http://daveriley.com/2009/07/14/image-button-found-guilty-of-not-being-valid-xhtml-horror/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 03:15:40 +0000</pubDate>
		<dc:creator>Dave Riley</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[validator]]></category>
		<category><![CDATA[wc3]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://daveriley.com/?p=932</guid>
		<description><![CDATA[The .net image button seems so innocent but a trip over to w3c.org and the html validator soon exposes the terrible truth. Prepare yourself for this, sit down, have a large brandy ready&#8230; It renders border=&#8221;0&#8243; even though you haven&#8217;t put one in there yourself! try it! Put any xhtml 1.0 transitional site into the [...]]]></description>
			<content:encoded><![CDATA[<p>The .net image button seems so innocent but a trip over to w3c.org and the html validator soon exposes the terrible truth. Prepare yourself for this, sit down, have a large brandy ready&#8230; It renders border=&#8221;0&#8243; even though you haven&#8217;t put one in there yourself! try it! Put any xhtml 1.0 transitional site into the validator:</p>
<p>http://validator.w3.org/</p>
<p>And watch in utter horror while your site is rejected as a bad example to kids everywhere.</p>
<p>So what is going on here? And is there anyway out?</p>
<p>Well after some digging I found an excellent article:</p>
<p>http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/ac098c63-61ff-4b53-b5ad-72cb2eb0f7f2</p>
<p>It turns out the validator is unrecognised as a browser type to asp.net and so is presented with html 4.0 instead of xhtml, hence the border=&#8221;0&#8243; debarkle.</p>
<p>Is there a workaround? Yes there is either don&#8217;t use image buttons or put this in your web.config:</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #800000; font-size: x-small;">browserCaps</span><span style="color: #0000ff; font-size: x-small;">&gt;<br />
&lt;</span><span style="color: #800000; font-size: x-small;">case</span><span style="color: #0000ff; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">match</span><span style="color: #0000ff; font-size: x-small;">=</span><span style="font-size: x-small;">&#8220;</span><span style="color: #0000ff; font-size: x-small;">W3C_Validator*</span><span style="font-size: x-small;">&#8220;</span><span style="color: #0000ff; font-size: x-small;">&gt;<br />
</span><span style="font-size: x-small;">TagWriter = System.Web.UI.HtmlTextWriter<br />
W3CDomVersion = 1.0<br />
</span><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #800000; font-size: x-small;">case</span><span style="color: #0000ff; font-size: x-small;">&gt;<br />
&lt;/</span><span style="color: #800000; font-size: x-small;">browserCaps</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p></blockquote>
<p>A solution to a weird problem, but necessary if like me you want that green tick <img src='http://daveriley.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Image%20button%20found%20guilty%20of%20not%20being%20valid%20xhtml%20horror%21%21%21&amp;body=http%3A%2F%2Fdaveriley.com%2F2009%2F07%2F14%2Fimage-button-found-guilty-of-not-being-valid-xhtml-horror%2F">
<img src="http://daveriley.com/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdaveriley.com%2F2009%2F07%2F14%2Fimage-button-found-guilty-of-not-being-valid-xhtml-horror%2F&amp;title=Image+button+found+guilty+of+not+being+valid+xhtml+horror%21%21%21">
<img src="http://daveriley.com/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fdaveriley.com%2F2009%2F07%2F14%2Fimage-button-found-guilty-of-not-being-valid-xhtml-horror%2F&amp;title=Image+button+found+guilty+of+not+being+valid+xhtml+horror%21%21%21">
<img src="http://daveriley.com/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fdaveriley.com%2F2009%2F07%2F14%2Fimage-button-found-guilty-of-not-being-valid-xhtml-horror%2F&amp;t=Image+button+found+guilty+of+not+being+valid+xhtml+horror%21%21%21">
<img src="http://daveriley.com/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fdaveriley.com%2F2009%2F07%2F14%2Fimage-button-found-guilty-of-not-being-valid-xhtml-horror%2F&amp;title=Image+button+found+guilty+of+not+being+valid+xhtml+horror%21%21%21">
<img src="http://daveriley.com/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
<img src="http://daveriley.com/?ak_action=api_record_view&id=932&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://daveriley.com/2009/07/14/image-button-found-guilty-of-not-being-valid-xhtml-horror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

