Browse files

[] (0) Make focused elements fire onclick='' when the user activates …

…them with the keyboard.

git-svn-id: http://svn.whatwg.org/webapps@2538 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 0122952 commit 140fb05a17cb2130179a33e96f94fa98b025ab77 @Hixie Hixie committed Dec 16, 2008
Showing with 20 additions and 0 deletions.
  1. +10 −0 index
  2. +10 −0 source
View
10 index
@@ -40640,6 +40640,16 @@ at the first element with the given ID must be treated as if it was cloned and r
<span>being rendered</span><!-- XXX xref, define display:none as not
being rendered, off-screen as being rendered? -->.</p>
+ <p>An element that is <a href=#focusable>focusable</a> but does not otherwise
+ have an <a href=#activation-behavior>activation behavior</a> defined has an
+ <a href=#activation-behavior>activation behavior</a> that does nothing.</p>
+
+ <p class=note>This means that an element that is only focusable
+ because of its <code title=attr-tabindex><a href=#attr-tabindex>tabindex</a></code> attribute
+ will fire a <code title=event-click>click</code> event in response
+ to a non-mouse activation (e.g. hitting the "enter" key while the
+ element is focused).</p>
+
<p>The <dfn id=dom-tabindex title=dom-tabIndex><code>tabIndex</code></dfn> DOM
attribute must <a href=#reflect>reflect</a> the value of the <code title=attr-tabindex><a href=#attr-tabindex>tabindex</a></code> content attribute. If the
attribute is not present, or parsing its value returns an error,
View
10 source
@@ -46332,6 +46332,16 @@ at the first element with the given ID must be treated as if it was cloned and r
<span>being rendered</span><!-- XXX xref, define display:none as not
being rendered, off-screen as being rendered? -->.</p>
+ <p>An element that is <span>focusable</span> but does not otherwise
+ have an <span>activation behavior</span> defined has an
+ <span>activation behavior</span> that does nothing.</p>
+
+ <p class="note">This means that an element that is only focusable
+ because of its <code title="attr-tabindex">tabindex</code> attribute
+ will fire a <code title="event-click">click</code> event in response
+ to a non-mouse activation (e.g. hitting the "enter" key while the
+ element is focused).</p>
+
<p>The <dfn title="dom-tabIndex"><code>tabIndex</code></dfn> DOM
attribute must <span>reflect</span> the value of the <code
title="attr-tabindex">tabindex</code> content attribute. If the

0 comments on commit 140fb05

Please sign in to comment.