W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2011

html5/spec Overview.html,1.5412,1.5413

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 25 Oct 2011 18:44:26 +0000
To: public-html-commits@w3.org
Message-Id: <E1RIlz9-0002J3-4B@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv8835

Modified Files:
	Overview.html 
Log Message:
Compatibility fix for how events are fired when nothing is focused and there's no body element. Also, editorial tweaks around how drag and drop events are fired to the body element. (whatwg r6753)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5412
retrieving revision 1.5413
diff -u -d -r1.5412 -r1.5413
--- Overview.html	25 Oct 2011 04:26:09 -0000	1.5412
+++ Overview.html	25 Oct 2011 18:44:22 -0000	1.5413
@@ -8052,10 +8052,7 @@
   </dl><p><dfn id="the-body-element-0">The body element</dfn> of a document is the first child of
   <a href="#the-html-element-0">the <code>html</code> element</a> that is either a
   <code><a href="#the-body-element">body</a></code> element or a <code><a href="#frameset">frameset</a></code> element. If
-  there is no such element, it is null. <span class="impl">If the body
-  element is null, then when the specification requires that events be
-  fired at "the body element", they must instead be fired at the
-  <code><a href="#document">Document</a></code> object.</span><div class="impl">
+  there is no such element, it is null.<div class="impl">
 
   <p>The <dfn id="dom-document-body" title="dom-document-body"><code>body</code></dfn>
   attribute, on getting, must return <a href="#the-body-element-0">the body element</a> of
@@ -52679,7 +52676,10 @@
   <p>When an element is <i>focused</i>, key events received by the
   document must be targeted at that element. There may be no element
   focused; when no element is focused, key events received by the
-  document must be targeted at <a href="#the-body-element-0">the body element</a>.</p>
+  document must be targeted at <a href="#the-body-element-0">the body element</a>, if there
+  is one, or else at the <code><a href="#document">Document</a></code>'s root element, if
+  there is one. If there is no root element, key events must not be
+  fired.</p>
 
   <p>User agents may track focus for each <a href="#browsing-context">browsing
   context</a> or <code><a href="#document">Document</a></code> individually, or may support
@@ -54847,16 +54847,11 @@
          <dd>
 
           <p><a href="#fire-a-dnd-event">Fire a DND event</a> named <code title="event-dragenter"><a href="#event-dragenter">dragenter</a></code> at <a href="#the-body-element-0">the body
-          element</a>, and set the <a href="#current-target-element">current target
-          element</a> to <a href="#the-body-element-0">the body element</a>, regardless
-          of whether that event was canceled or not.</p>
-
-          <p class="note">If <a href="#the-body-element-0">the body element</a> is null,
-          then the event will be fired at the <code><a href="#document">Document</a></code>
-          object (as required by the definition of <a href="#the-body-element-0">the body
-          element</a>), but the <a href="#current-target-element">current target element</a>
-          would be set to null, not the <code><a href="#document">Document</a></code>
-          object.</dd>
+          element</a>, if there is one, or at the
+          <code><a href="#document">Document</a></code> object, if not. Then, and set the
+          <a href="#current-target-element">current target element</a> to <a href="#the-body-element-0">the body
+          element</a>, regardless of whether that event was
+          canceled or not.</p>
 
         </dl></dd>
 
Received on Tuesday, 25 October 2011 18:44:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 October 2011 18:44:31 GMT