[html5] r2538 - [] (0) Make focused elements fire onclick='' when the user activates them with t [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Dec 16 15:43:39 PST 2008
Author: ianh
Date: 2008-12-16 15:43:38 -0800 (Tue, 16 Dec 2008)
New Revision: 2538
Modified:
index
source
Log:
[] (0) Make focused elements fire onclick='' when the user activates them with the keyboard.
Modified: index
===================================================================
--- index 2008-12-16 23:29:08 UTC (rev 2537)
+++ index 2008-12-16 23:43:38 UTC (rev 2538)
@@ -40640,6 +40640,16 @@
<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,
Modified: source
===================================================================
--- source 2008-12-16 23:29:08 UTC (rev 2537)
+++ source 2008-12-16 23:43:38 UTC (rev 2538)
@@ -46332,6 +46332,16 @@
<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
More information about the Commit-Watchers
mailing list