- From: Sam Ruby via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 29 Oct 2012 03:14:24 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv10405
Modified Files:
attributes-common-to-form-controls.html editing.html
index.html single-page.html
Log Message:
commit 51755393c0d96625234e3a092ba0604629c5b856
Author: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Sun Sep 9 13:37:15 2012 +1000
[giow] (0) Fix the way 'inert' is defined wrt focusability to actually work. (Why was it defined the other way before? Am I missing something?)
Affected topics: HTML
git-svn-id: http://svn.whatwg.org/webapps@7217 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 144305515edb7f910bc4c6ed4ad3cfdcad1c28d4)
Index: attributes-common-to-form-controls.html
===================================================================
RCS file: /sources/public/html5/spec/attributes-common-to-form-controls.html,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -d -r1.206 -r1.207
--- attributes-common-to-form-controls.html 29 Oct 2012 02:45:11 -0000 1.206
+++ attributes-common-to-form-controls.html 29 Oct 2012 03:14:21 -0000 1.207
@@ -420,6 +420,11 @@
<!-- v2: Apply this to contentEditable elements -->
+ <!-- v2: Make this work with modal <dialog>s:
+ - exclude <dialog> subtrees from the exclusion of multiple autofocus attributes (careful, consider nested dialogs)
+ - when a showModal() method is invoked, look for elements to autofocus in that dialog
+ -->
+
<p>The <dfn id="attr-fe-autofocus" title="attr-fe-autofocus"><code>autofocus</code></dfn>
content attribute allows the author to indicate that a control is to
be focused as soon as the page is loaded or as soon as the
Index: single-page.html
===================================================================
RCS file: /sources/public/html5/spec/single-page.html,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- single-page.html 29 Oct 2012 02:45:16 -0000 1.188
+++ single-page.html 29 Oct 2012 03:14:22 -0000 1.189
@@ -51851,6 +51851,11 @@
<!-- v2: Apply this to contentEditable elements -->
+ <!-- v2: Make this work with modal <dialog>s:
+ - exclude <dialog> subtrees from the exclusion of multiple autofocus attributes (careful, consider nested dialogs)
+ - when a showModal() method is invoked, look for elements to autofocus in that dialog
+ -->
+
<p>The <dfn id="attr-fe-autofocus" title="attr-fe-autofocus"><code>autofocus</code></dfn>
content attribute allows the author to indicate that a control is to
be focused as soon as the page is loaded or as soon as the
@@ -70482,8 +70487,8 @@
<code><a href="#the-body-element">body</a></code> element rather than the paragraph.</p>
<p class="note">When a node or one of its ancestors is inert, it
- also can't be focused (see the <a href="#focusing-steps">focusing steps</a>), and it
- is disabled if it is a <a href="#concept-command" title="concept-command">command</a>.</p>
+ also can't be <a href="#focusable">focusable</a>, and it is disabled if it is a
+ <a href="#concept-command" title="concept-command">command</a>.</p>
<p>An entire <code><a href="#document">Document</a></code> can be marked as <dfn id="blocked-by-a-modal-dialog">blocked by
a modal dialog</dfn> <var title="">dialog</var>. While a
@@ -70734,7 +70739,9 @@
<a href="#specially-focusable">tabindex focus flag</a> set, but only if the element is
either <a href="#being-rendered">being rendered</a> or <!-- CANVAS-FOCUS-FALLBACK -->
is a descendant of a <code><a href="#the-canvas-element">canvas</a></code> element that
- <a href="#represents">represents</a> <a href="#embedded-content-2">embedded content</a>.</p>
+ <a href="#represents">represents</a> <a href="#embedded-content-2">embedded content</a>, and only if
+ neither the element nor any of its ancestors are
+ <a href="#inert">inert</a>.</p>
<p>User agents should make the following elements
<a href="#focusable">focusable</a> as part of their default behavior, unless
@@ -70798,8 +70805,7 @@
<code><a href="#document">Document</a></code> has no <a href="#browsing-context">browsing context</a>, or if
the element's <code><a href="#document">Document</a></code>'s <a href="#browsing-context">browsing context</a>
has no <a href="#top-level-browsing-context">top-level browsing context</a>, or if the element
- is not <a href="#focusable">focusable</a>, or if the element is already
- focused, then abort these steps.</p>
+ is not <a href="#focusable">focusable</a>, then abort these steps.</p>
</li><li><p>If focusing the element will remove the focus from another
element, then run the <a href="#unfocusing-steps">unfocusing steps</a> for that
Index: editing.html
===================================================================
RCS file: /sources/public/html5/spec/editing.html,v
retrieving revision 1.1261
retrieving revision 1.1262
diff -u -d -r1.1261 -r1.1262
--- editing.html 29 Oct 2012 02:45:14 -0000 1.1261
+++ editing.html 29 Oct 2012 03:14:21 -0000 1.1262
@@ -498,8 +498,8 @@
<code><a href="the-body-element.html#the-body-element">body</a></code> element rather than the paragraph.</p>
<p class="note">When a node or one of its ancestors is inert, it
- also can't be focused (see the <a href="#focusing-steps">focusing steps</a>), and it
- is disabled if it is a <a href="commands.html#concept-command" title="concept-command">command</a>.</p>
+ also can't be <a href="#focusable">focusable</a>, and it is disabled if it is a
+ <a href="commands.html#concept-command" title="concept-command">command</a>.</p>
<p>An entire <code><a href="dom.html#document">Document</a></code> can be marked as <dfn id="blocked-by-a-modal-dialog">blocked by
a modal dialog</dfn> <var title="">dialog</var>. While a
@@ -738,7 +738,9 @@
<a href="#specially-focusable">tabindex focus flag</a> set, but only if the element is
either <a href="rendering.html#being-rendered">being rendered</a> or <!-- CANVAS-FOCUS-FALLBACK -->
is a descendant of a <code><a href="the-canvas-element.html#the-canvas-element">canvas</a></code> element that
- <a href="rendering.html#represents">represents</a> <a href="content-models.html#embedded-content-2">embedded content</a>.</p>
+ <a href="rendering.html#represents">represents</a> <a href="content-models.html#embedded-content-2">embedded content</a>, and only if
+ neither the element nor any of its ancestors are
+ <a href="#inert">inert</a>.</p>
<p>User agents should make the following elements
<a href="#focusable">focusable</a> as part of their default behavior, unless
@@ -794,8 +796,7 @@
<code><a href="dom.html#document">Document</a></code> has no <a href="browsers.html#browsing-context">browsing context</a>, or if
the element's <code><a href="dom.html#document">Document</a></code>'s <a href="browsers.html#browsing-context">browsing context</a>
has no <a href="browsers.html#top-level-browsing-context">top-level browsing context</a>, or if the element
- is not <a href="#focusable">focusable</a>, or if the element is already
- focused, then abort these steps.</p>
+ is not <a href="#focusable">focusable</a>, then abort these steps.</p>
<li><p>If focusing the element will remove the focus from another
element, then run the <a href="#unfocusing-steps">unfocusing steps</a> for that
Received on Monday, 29 October 2012 03:14:26 UTC