Navigation Menu

Skip to content

Commit

Permalink
[e] (0) RFC2119ify the "assigned access key" section
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11279

git-svn-id: http://svn.whatwg.org/webapps@5818 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 3, 2011
1 parent 9869b02 commit 8a17c3c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
14 changes: 9 additions & 5 deletions complete.html
Expand Up @@ -67195,15 +67195,19 @@ <h4 id=the-accesskey-attribute><span class=secno>8.4.2 </span>The <dfn title=att
<h4 id=processing-model-3><span class=secno>8.4.3 </span>Processing model</h4>

<p>An element's <dfn id=assigned-access-key>assigned access key</dfn> is a key combination
derived from the element's <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> content attribute as
follows:</p>
derived from the element's <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> content attribute.
Initially, an element must not have an <a href=#assigned-access-key>assigned access
key</a>.</p>

<p>Whenever an element's <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> attribute is set, changed,
or removed, the user agent must update the element's <a href=#assigned-access-key>assigned
access key</a> by running the following steps:</p>

<ol><li><p>If the element has no <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> attribute, then skip to the
<i>fallback</i> step below.</li>

<li><p>Otherwise, the user agent must <a href=#split-a-string-on-spaces title="split a string
on spaces">split the attribute's value on spaces</a>, and let
<var title="">keys</var> be the resulting tokens.</li>
<li><p>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
attribute's value on spaces</a>, and let <var title="">keys</var> be the resulting tokens.</li>

<li>

Expand Down
14 changes: 9 additions & 5 deletions index
Expand Up @@ -67203,15 +67203,19 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
<h4 id=processing-model-3><span class=secno>8.4.3 </span>Processing model</h4>

<p>An element's <dfn id=assigned-access-key>assigned access key</dfn> is a key combination
derived from the element's <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> content attribute as
follows:</p>
derived from the element's <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> content attribute.
Initially, an element must not have an <a href=#assigned-access-key>assigned access
key</a>.</p>

<p>Whenever an element's <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> attribute is set, changed,
or removed, the user agent must update the element's <a href=#assigned-access-key>assigned
access key</a> by running the following steps:</p>

<ol><li><p>If the element has no <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> attribute, then skip to the
<i>fallback</i> step below.</li>

<li><p>Otherwise, the user agent must <a href=#split-a-string-on-spaces title="split a string
on spaces">split the attribute's value on spaces</a>, and let
<var title="">keys</var> be the resulting tokens.</li>
<li><p>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
attribute's value on spaces</a>, and let <var title="">keys</var> be the resulting tokens.</li>

<li>

Expand Down
16 changes: 11 additions & 5 deletions source
Expand Up @@ -76502,18 +76502,24 @@ interface <dfn>NavigatorAbilities</dfn> {

<p>An element's <dfn>assigned access key</dfn> is a key combination
derived from the element's <code
title="attr-accesskey">accesskey</code> content attribute as
follows:</p>
title="attr-accesskey">accesskey</code> content attribute.
Initially, an element must not have an <span>assigned access
key</span>.</p>

<p>Whenever an element's <code
title="attr-accesskey">accesskey</code> attribute is set, changed,
or removed, the user agent must update the element's <span>assigned
access key</span> by running the following steps:</p>

<ol>

<li><p>If the element has no <code
title="attr-accesskey">accesskey</code> attribute, then skip to the
<i>fallback</i> step below.</p></li>

<li><p>Otherwise, the user agent must <span title="split a string
on spaces">split the attribute's value on spaces</span>, and let
<var title="">keys</var> be the resulting tokens.</p></li>
<li><p>Otherwise, <span title="split a string on spaces">split the
attribute's value on spaces</span>, and let <var
title="">keys</var> be the resulting tokens.</p></li>

<li>

Expand Down

0 comments on commit 8a17c3c

Please sign in to comment.