approximate focus/blur resolutions
authorbjoern
Sat, 25 Feb 2006 00:34:48 +0900
changeset 7 b4a70c614506
parent 6 a9112b5fdd97
child 8 bad5e35e7116
approximate focus/blur resolutions
source/xml-source.xml
--- a/source/xml-source.xml	Fri Feb 24 23:30:37 2006 +0900
+++ b/source/xml-source.xml	Sat Feb 25 00:34:48 2006 +0900
@@ -606,10 +606,11 @@
       implementation conforms to the DOM Level 3 User Interface Events
       module (see <specref ref="Events-eventgroupings-uievents"/>) if it
       conforms to DOM Level 3 Events (i.e. implements all the basic
-      interfaces), can generate the event type
-      <code>ev:DOMActivate</code> accordingly to its semantics, supports
-      the <code>UIEvent</code> interface, and conforms to the DOM Level
-      2 Core module.
+      interfaces), can generate the event types
+      <code>ev:DOMActivate</code>, <code>ev:focus</code>, and
+      <code>ev:blur</code> accordingly to their semantics, supports the
+      <code>UIEvent</code> interface, and conforms to the DOM Level 2
+      Core module.
      </p>
 
      <note>
@@ -1088,7 +1089,8 @@
       <edtext>
        The events were defined here in the previous version of the
        document, this note serves as placeholder until all references to
-       this section are updated (including the section itself).
+       this section are updated (including the section itself). Also,
+       the note about focus/blur above is outdated.
       </edtext>
      </ednote>
 
@@ -3662,6 +3664,180 @@
        </def>
       </gitem>
      </glist>
+
+     <glist role="event-definition">
+      <gitem>
+       <label id="event-focus"><code>ev:focus</code></label>
+
+       <def>
+        <table summary="This table contains information about the semantics of the given event type" border="0" cellspacing="0" cellpadding="2">
+         <tbody>
+          <tr>
+           <th>
+            Type
+           </th>
+
+           <td>
+            <code>focus</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Namespace
+           </th>
+
+           <td>
+            <code>http://www.w3.org/2001/xml-events</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Interface
+           </th>
+
+           <td>
+            <code>UIEvent</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Cancelable
+           </th>
+
+           <td>
+            No
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Bubbles
+           </th>
+
+           <td>
+            No
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Target
+           </th>
+
+           <td>
+            <code>Element</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Context info
+           </th>
+
+           <td>
+            <code>UIEvent.view</code> is in use.
+           </td>
+          </tr>
+         </tbody>
+        </table>
+
+        <p>
+         An event target receives focus. The focus is given to the
+         element before the dispatch of this event type.
+        </p>
+       </def>
+      </gitem>
+     </glist>
+
+     <glist role="event-definition">
+      <gitem>
+       <label id="event-blur"><code>ev:blur</code></label>
+
+       <def>
+        <table summary="This table contains information about the semantics of the given event type" border="0" cellspacing="0" cellpadding="2">
+         <tbody>
+          <tr>
+           <th>
+            Type
+           </th>
+
+           <td>
+            <code>blur</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Namespace
+           </th>
+
+           <td>
+            <code>http://www.w3.org/2001/xml-events</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Interface
+           </th>
+
+           <td>
+            <code>UIEvent</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Cancelable
+           </th>
+
+           <td>
+            No
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Bubbles
+           </th>
+
+           <td>
+            No
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Target
+           </th>
+
+           <td>
+            <code>Element</code>
+           </td>
+          </tr>
+
+          <tr>
+           <th>
+            Context info
+           </th>
+
+           <td>
+            <code>UIEvent.view</code> is in use.
+           </td>
+          </tr>
+         </tbody>
+        </table>
+
+        <p>
+         A event target loses focus. The focus is taken from the element
+         before the dispatch of this event type.
+        </p>
+       </def>
+      </gitem>
+     </glist>
     </div3>
 
     <div3 id="Events-TextEvents-Interfaces">
@@ -8192,6 +8368,12 @@
       the <code>Document</code> node supports the HTML module.
      </p>
 
+     <ednote>
+      <edtext>
+       Needs to say that it inherits UIEvents focus and blur instead.
+      </edtext>
+     </ednote>
+
      <p>
       A DOM application may use the <code>hasFeature(feature,
       version)</code> method of the <code>DOMImplementation</code>
@@ -8640,11 +8822,11 @@
         </td>
 
         <td>
-         No
-        </td>
-
-        <td>
-         No
+         [no changes]
+        </td>
+
+        <td>
+         [no changes]
         </td>
 
         <td>
@@ -8656,7 +8838,7 @@
         </td>
 
         <td>
-         <code>Event</code>
+         [no changes]
         </td>
        </tr>
 
@@ -8666,11 +8848,11 @@
         </td>
 
         <td>
-         No
-        </td>
-
-        <td>
-         No
+         [no changes]
+        </td>
+
+        <td>
+         [no changes]
         </td>
 
         <td>
@@ -8682,19 +8864,12 @@
         </td>
 
         <td>
-         <code>Event</code>
+         [no changes]
         </td>
        </tr>
       </tbody>
      </table>
 
-     <p>
-      The event types <code>ev:focus</code> and <code>ev:blur</code> may
-      be generated from a user interface; in that case, the event
-      objects also implements the <code>UIEvent</code> interface and
-      <code>UIEvent.view</code> is in use.
-     </p>
-
      <div4>
       <head>
        Activation and default actions
@@ -13581,5 +13756,8 @@
     * merge 1.3 and 1.7.7.1
     * @@
     * what happens with hasFeature('UIEvents', '2.0') now
-      that DOMFocusIn/Out are gone?
+      that DOMFocusIn/Out are gone? Resolved but needs
+      implementation
+    * need to say what evt.view is if .focus() generated
+      the event type
 -->