<?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>Web Development &#38; Stuff &#187; Web accessibility</title>
	<atom:link href="http://web-development-blog.co.uk/tag/web-accessibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://web-development-blog.co.uk</link>
	<description>Some interesting findings from web-dev land...</description>
	<lastBuildDate>Mon, 02 Apr 2012 15:10:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nested form labels / inputs technique using Ruby on Rails form helpers</title>
		<link>http://web-development-blog.co.uk/2009/03/18/nested-form-labels-inputs-technique-using-ruby-on-rails-form-helpers/</link>
		<comments>http://web-development-blog.co.uk/2009/03/18/nested-form-labels-inputs-technique-using-ruby-on-rails-form-helpers/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 16:36:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web accessibility]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=101</guid>
		<description><![CDATA[It was, (not 100% up on WAG2 yet) a W3C WAI accessibility recommendation to nest your form fields (inputs/selects etc) inside your label tags. So they were contained by the label much like you&#8217;d put an  &#60;img&#62; tag inside an &#60;a&#62; tag to make it a link.
The Rails helpers don&#8217;t seem to have much [...]]]></description>
			<content:encoded><![CDATA[<p>It was, (not 100% up on WAG2 yet) a W3C WAI accessibility recommendation to nest your form fields (inputs/selects etc) inside your label tags. So they were contained by the label much like you&#8217;d put an  &lt;img&gt; tag inside an &lt;a&gt; tag to make it a link.</p>
<p>The Rails helpers don&#8217;t seem to have much scope for this (please correct me) but it is hack-able doing some concatenation stuff like this:</p>
<div class="codecolorer-container ruby " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="ruby codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;%</span>= f.<span class="me1">label</span> <span class="st0">&quot;Screen name:&quot;</span> <span class="sy0">+</span> <span class="br0">&#40;</span>f.<span class="me1">text_field</span> <span class="re3">:screen_name</span><span class="br0">&#41;</span> <span class="sy0">%&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/03/18/nested-form-labels-inputs-technique-using-ruby-on-rails-form-helpers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HEAD NOSCRIPT CSS validation workaround</title>
		<link>http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/</link>
		<comments>http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 11:40:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web accessibility]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/</guid>
		<description><![CDATA[I wanted to apply a different set of css styles to a degraded non-javascript version of a page to maintain some accessibility aspects.
I wrestled for a while with the &#60;noscript&#62; tag but this fails to validate in the head section of a HTML/XHTML document. This wasn&#8217;t a good enough way to do things.
Eventually (with a [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to apply a different set of css styles to a degraded non-javascript version of a page to maintain some accessibility aspects.</p>
<p>I wrestled for a while with the &lt;noscript&gt; tag but this fails to validate in the head section of a HTML/XHTML document. This wasn&#8217;t a good enough way to do things.</p>
<p>Eventually (with a little help from a friend!) I found a solution and that was to add a class attribute to the &lt;html&gt; tag with Javascript. So I added this in the &lt;head&gt; section:</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc2">&lt;<span class="kw2">script</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">language</span><span class="sy0">=</span><span class="st0">&quot;javascript&quot;</span>&gt;</span><br />
<br />
&nbsp; /* This adds the class js to the html tag. Allowing us<br />
&nbsp; &nbsp; &nbsp; &nbsp; to apply different styles if javascript is enabled.*/<br />
&nbsp; &nbsp; document.documentElement.className = “js”;<br />
<br />
<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">script</span>&gt;</span></div></td></tr></tbody></table></div>
<p>So if Javascript is enabled my &lt;html&gt; tag now has this class &lt;html class=&#8221;js&#8221;&gt;</p>
<p>Allowing me to apply different styling to both the Javascript enabled or degraded versions:</p>
<p>No Javascript</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">html h1 <span class="br0">&#123;</span> <span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">100</span>%</span><span class="sy0">;</span> <span class="br0">&#125;</span></div></td></tr></tbody></table></div>
<p>Javascript</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">html<span class="re1">.js</span> h1 <span class="br0">&#123;</span> <span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">200</span>%</span><span class="sy0">;</span> <span class="br0">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

