Skip to content

Commit

Permalink
[] (0) Make focused elements fire onclick='' when the user activates …
Browse files Browse the repository at this point in the history
…them with the keyboard.

git-svn-id: http://svn.whatwg.org/webapps@2538 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 16, 2008
1 parent 0122952 commit 140fb05
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions source
Expand Up @@ -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
Expand Down

0 comments on commit 140fb05

Please sign in to comment.