[html5] r6876 - [giow] (2) Clarify what is focused in the iframe's owner document when an iframe [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Dec 16 12:53:40 PST 2011


Author: ianh
Date: 2011-12-16 12:53:39 -0800 (Fri, 16 Dec 2011)
New Revision: 6876

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Clarify what is focused in the iframe's owner document when an iframe's child document is focused.
Affected topics: DOM APIs, HTML

Modified: complete.html
===================================================================
--- complete.html	2011-12-16 00:32:35 UTC (rev 6875)
+++ complete.html	2011-12-16 20:53:39 UTC (rev 6876)
@@ -70484,6 +70484,10 @@
   <a href=#top-level-browsing-context>top-level browsing context</a> itself has the <i>system
   focus</i>.</p>
 
+  <p id=bc-focus-ergo-bcc-focus>When a <a href=#child-browsing-context>child browsing
+  context</a> is focused, its <a href=#browsing-context-container>browsing context
+  container</a> must also have focus.</p>
+
   <p class=note>When an element is focused, the element matches the
   CSS <code>:focus</code> pseudo-class.</p>
 
@@ -70639,6 +70643,9 @@
 
    <li><a href=#editing-host title="editing host">Editing hosts</a></li>
 
+   <li><a href=#browsing-context-container title="browsing context container">Browsing context
+   containers</a></li> <!-- like <iframe>s -->
+
   </ul><p>In addition, each shape that is generated for an
   <code><a href=#the-area-element>area</a></code> element should be <a href=#focusable>focusable</a>, unless
   platform conventions dictate otherwise. (A single <code><a href=#the-area-element>area</a></code>
@@ -70766,6 +70773,13 @@
   <code><a href=#document>Document</a></code> is focused, this must return <a href=#the-body-element-0>the body
   element</a>.</p>
 
+  <p class=note>When a <a href=#child-browsing-context>child browsing context</a> is
+  focused, its <a href=#browsing-context-container>browsing context container</a> is also
+  focused, <a href=#bc-focus-ergo-bcc-focus>by definition</a>. For
+  example, if the user moves the focus to a text field in an
+  <code><a href=#the-iframe-element>iframe</a></code>, the <code><a href=#the-iframe-element>iframe</a></code> is the element with
+  focus in the <a href=#parent-browsing-context>parent browsing context</a>.</p>
+
   <p>The <dfn id=dom-document-hasfocus title=dom-document-hasFocus><code>hasFocus()</code></dfn> method
   on <code><a href=#document>Document</a></code> objects must return true if the
   <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing context</a> is focused,

Modified: index
===================================================================
--- index	2011-12-16 00:32:35 UTC (rev 6875)
+++ index	2011-12-16 20:53:39 UTC (rev 6876)
@@ -70484,6 +70484,10 @@
   <a href=#top-level-browsing-context>top-level browsing context</a> itself has the <i>system
   focus</i>.</p>
 
+  <p id=bc-focus-ergo-bcc-focus>When a <a href=#child-browsing-context>child browsing
+  context</a> is focused, its <a href=#browsing-context-container>browsing context
+  container</a> must also have focus.</p>
+
   <p class=note>When an element is focused, the element matches the
   CSS <code>:focus</code> pseudo-class.</p>
 
@@ -70639,6 +70643,9 @@
 
    <li><a href=#editing-host title="editing host">Editing hosts</a></li>
 
+   <li><a href=#browsing-context-container title="browsing context container">Browsing context
+   containers</a></li> <!-- like <iframe>s -->
+
   </ul><p>In addition, each shape that is generated for an
   <code><a href=#the-area-element>area</a></code> element should be <a href=#focusable>focusable</a>, unless
   platform conventions dictate otherwise. (A single <code><a href=#the-area-element>area</a></code>
@@ -70766,6 +70773,13 @@
   <code><a href=#document>Document</a></code> is focused, this must return <a href=#the-body-element-0>the body
   element</a>.</p>
 
+  <p class=note>When a <a href=#child-browsing-context>child browsing context</a> is
+  focused, its <a href=#browsing-context-container>browsing context container</a> is also
+  focused, <a href=#bc-focus-ergo-bcc-focus>by definition</a>. For
+  example, if the user moves the focus to a text field in an
+  <code><a href=#the-iframe-element>iframe</a></code>, the <code><a href=#the-iframe-element>iframe</a></code> is the element with
+  focus in the <a href=#parent-browsing-context>parent browsing context</a>.</p>
+
   <p>The <dfn id=dom-document-hasfocus title=dom-document-hasFocus><code>hasFocus()</code></dfn> method
   on <code><a href=#document>Document</a></code> objects must return true if the
   <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing context</a> is focused,

Modified: source
===================================================================
--- source	2011-12-16 00:32:35 UTC (rev 6875)
+++ source	2011-12-16 20:53:39 UTC (rev 6876)
@@ -82398,6 +82398,10 @@
   <span>top-level browsing context</span> itself has the <i>system
   focus</i>.</p>
 
+  <p id="bc-focus-ergo-bcc-focus">When a <span>child browsing
+  context</span> is focused, its <span>browsing context
+  container</span> must also have focus.</p>
+
   <p class="note">When an element is focused, the element matches the
   CSS <code>:focus</code> pseudo-class.</p>
 
@@ -82580,6 +82584,9 @@
 
    <li><span title="editing host">Editing hosts</span></li>
 
+   <li><span title="browsing context container">Browsing context
+   containers</span></li> <!-- like <iframe>s -->
+
   </ul>
 
   <p>In addition, each shape that is generated for an
@@ -82732,6 +82739,13 @@
   <code>Document</code> is focused, this must return <span>the body
   element</span>.</p>
 
+  <p class="note">When a <span>child browsing context</span> is
+  focused, its <span>browsing context container</span> is also
+  focused, <a href="#bc-focus-ergo-bcc-focus">by definition</a>. For
+  example, if the user moves the focus to a text field in an
+  <code>iframe</code>, the <code>iframe</code> is the element with
+  focus in the <span>parent browsing context</span>.</p>
+
   <p>The <dfn
   title="dom-document-hasFocus"><code>hasFocus()</code></dfn> method
   on <code>Document</code> objects must return true if the




More information about the Commit-Watchers mailing list