W3C home > Mailing lists > Public > public-html-diffs@w3.org > December 2008

spec/Overview.html 1.1709 2538 Make focused elements fire onclick='' wh

From: poot <cvsmail@w3.org>
Date: Wed, 17 Dec 2008 08:46:26 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20081216234627.23A452BC69@toro.w3.mag.keio.ac.jp>

Make focused elements fire onclick='' when the user activates them with
the keyboard. (whatwg r2538)



RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1708
retrieving revision 1.1709
diff -u -d -r1.1708 -r1.1709
--- Overview.html	16 Dec 2008 23:29:13 -0000	1.1708
+++ Overview.html	16 Dec 2008 23:43:44 -0000	1.1709
@@ -32761,7 +32761,13 @@
   </dl><p>An element is <dfn id=focusable>focusable</dfn> if the <code title=attr-tabindex><a href=#attr-tabindex>tabindex</a></code> attribute's definition above
   defines the element to be focusable <em>and</em> the element is
   <span>being rendered</span><!-- XXX xref, define display:none as not
-  being rendered, off-screen as being rendered? -->.<p>The <dfn id=dom-tabindex title=dom-tabIndex><code>tabIndex</code></dfn> DOM
+  being rendered, off-screen as being rendered? -->.<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 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>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,
   then the DOM attribute must return 0 for elements that are focusable
Received on Tuesday, 16 December 2008 23:47:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:41:41 UTC