<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: The seven rules of unobtrusive JavaScript</title>
	<atom:link href="http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/</link>
	<description>Chris Heilmann - Accessibility, Web Development and Pragmatism - can talk, will travel</description>
	<pubDate>Thu, 28 Aug 2008 00:42:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Stepan</title>
		<link>http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-7734</link>
		<dc:creator>Stepan</dc:creator>
		<pubDate>Mon, 26 May 2008 10:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-7734</guid>
		<description>Hi Christian,

Great article!

I have one comment though.

You wrote:
"Headings can not be activated with a keyboard, but links can. In order to create clickable headings you should use JavaScript to inject links inside them and all is well - even keyboard users can then collapse and expand the content sections."

But actually headings as well as other HTML elements can be activated with a keyboard. All you have to do is add tabindex="0" attribute to them. Check out this article:

http://developer.mozilla.org/en/docs/Key-navigable_custom_DHTML_widgets</description>
		<content:encoded><![CDATA[<p>Hi Christian,</p>
<p>Great article!</p>
<p>I have one comment though.</p>
<p>You wrote:<br />
&#8220;Headings can not be activated with a keyboard, but links can. In order to create clickable headings you should use JavaScript to inject links inside them and all is well - even keyboard users can then collapse and expand the content sections.&#8221;</p>
<p>But actually headings as well as other <span class="caps">HTML </span>elements can be activated with a keyboard. All you have to do is add tabindex=&#8221;0&#8243; attribute to them. Check out this article:</p>
<p><a href="http://developer.mozilla.org/en/docs/Key-navigable_custom_DHTML_widgets" rel="nofollow">http://developer.mozilla.org/en/docs/Key-navigable_custom_DHTML_widgets</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu 'p01' Henri</title>
		<link>http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6462</link>
		<dc:creator>Mathieu 'p01' Henri</dc:creator>
		<pubDate>Mon, 19 Nov 2007 22:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6462</guid>
		<description>Nice article and talk+workshop at Paris Web. You really managed to please the froggies and get your point accross with your talk :)
As I told during the workshop, WRT to #3 I prefer the syntax:

var b = document.body;
b.className = (b.className&#124;&#124;'') + ' js';

But since you raised the inconsistent behaviour among browsers for such simple method as element.getAttribute(foo) , I'm wondering if the leading space in the code above could be a problem. I've never stumbled on one with that but my testing resources are limited.

Also, regarding the 'this' question, is there any noticeable cost of binding event handlers to the controller that will manage them ?</description>
		<content:encoded><![CDATA[<p>Nice article and talk+workshop at Paris Web. You really managed to please the froggies and get your point accross with your talk :)<br />
As I told during the workshop, <span class="caps">WRT </span>to #3 I prefer the syntax:</p>
<p>var b = document.body;<br />
b.className = (b.className||&#8221;) + &#8216; js&#8217;;</p>
<p>But since you raised the inconsistent behaviour among browsers for such simple method as element.getAttribute(foo) , I&#8217;m wondering if the leading space in the code above could be a problem. I&#8217;ve never stumbled on one with that but my testing resources are limited.</p>
<p>Also, regarding the &#8216;this&#8217; question, is there any noticeable cost of binding event handlers to the controller that will manage them ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6441</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 18 Nov 2007 00:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6441</guid>
		<description>@Jeremy basically because I am not a fan of "this" as it is ambiguous. If a method of the object is an event listener, "this" is normally the element you activated. It is dangerous, somehow.</description>
		<content:encoded><![CDATA[<p>@Jeremy basically because I am not a fan of &#8220;this&#8221; as it is ambiguous. If a method of the object is an event listener, &#8220;this&#8221; is normally the element you activated. It is dangerous, somehow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Taillandier</title>
		<link>http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6431</link>
		<dc:creator>Frank Taillandier</dc:creator>
		<pubDate>Sat, 17 Nov 2007 10:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6431</guid>
		<description>One if not the best presentation of the Paris Web conf. Useful tips, even more reasons to evangelise about standards and make us all laugh with your Asterix pictures. Chapeau !</description>
		<content:encoded><![CDATA[<p>One if not the best presentation of the Paris Web conf. Useful tips, even more reasons to evangelise about standards and make us all laugh with your Asterix pictures. Chapeau !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico</title>
		<link>http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6424</link>
		<dc:creator>Nico</dc:creator>
		<pubDate>Fri, 16 Nov 2007 19:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/2007/11/12/the-seven-rules-of-unobtrusive-javascript/#comment-6424</guid>
		<description>Hi Chris,
I've just came back from the Paris Web 2007 conference.
Only one word : great !</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
I&#8217;ve just came back from the Paris Web 2007 conference.<br />
Only one word : great !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
