changed focus events to be in line with DOM3 events
authorRichard Schwerdtfeger <schwer@us.ibm.com>
Wed, 20 Nov 2013 12:45:54 -0600
changeset 566 2e69c11e540b
parent 565 a226e08560d3
child 567 57c10cfc903f
changed focus events to be in line with DOM3 events
master/interact.html
master/script.html
--- a/master/interact.html	Wed Nov 20 11:38:02 2013 -0600
+++ b/master/interact.html	Wed Nov 20 12:45:54 2013 -0600
@@ -204,26 +204,46 @@
         <th>Event attribute name</th>
       </tr>
       <tr>
+        <td id="FocusEvent"><p class="event-name"><strong>focus</strong></p>
+          <p>Occurs when an element receives focus. The focus must be given to the element before the dispatch of this event type.</p></td>
+        <td>focus</td>
+        <td><a
+       href="http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#interface-FocusEvent">
+        FocusEvent</a></td>
+        <td><a
+        href="script.html#OnFocusEventAttribute">onfocus</a></td>
+      </tr>
+      <tr>
         <td id="FocusInEvent"><p class="event-name"><strong>focusin</strong></p>
-          <p>Occurs when an element receives focus, such as when a <a>'text'</a> becomes selected.</p></td>
-        <td>DOMFocusIn</td>
+          <p>Occurs when an element is about to receive focus.</p></td>
+        <td>focusin</td>
         <td><a
-        href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-UIEvent">
-        UIEvent</a></td>
+        href="http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#interface-FocusEvent">
+        FocusEvent</a></td>
         <td><a
         href="script.html#OnFocusInEventAttribute">onfocusin</a></td>
       </tr>
       <tr>
         <td id="FocusOutEvent"><p class="event-name"><strong>focusout</strong></p>
-        <p>Occurs when an element loses focus, such as when a <a>'text'</a> becomes unselected.</p></td>
-        <td>DOMFocusOut</td>
+        <p>Occurs when an element is about to lose focus. The event must be dispatched to before the element loses focus. The element must be the element which is about to lose focus</p></td>
+        <td>focusout</td>
         <td><a
-        href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-UIEvent">
-        UIEvent</a></td>
+        href="http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#interface-FocusEvent">
+        FocusEvent</a></td>
         <td><a
         href="script.html#OnFocusOutEventAttribute">onfocusout</a></td>
       </tr>
       <tr>
+        <td id="BlurEvent"><p class="event-name"><strong>blur</strong></p>        <p>Occurs when an element loses focus. The focus must be taken from the element before the dispatch of this event type.</p></td>
+        <td>blur</td>
+        <td><a
+        href="http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#interface-FocusEvent">
+        FocusEvent</a></td>
+        <td><a
+        href="script.html#OnBlurEventAttribute">onblur</a></td>
+      </tr>
+
+      <tr>
         <td id="KeyDownEvent"><p class="event-name"><strong>keydown</strong></p>
         <p>Occurs when a key is pressed down. The keydown event type is device dependent and relies on the capabilities         of the input devices and how they are mapped in the operating system.
         </p></td>
--- a/master/script.html	Wed Nov 20 11:38:02 2013 -0600
+++ b/master/script.html	Wed Nov 20 12:45:54 2013 -0600
@@ -281,6 +281,8 @@
         <td>
           <dfn id="OnFocusInEventAttribute">onfocusin</dfn>,
           <dfn id="OnFocusOutEventAttribute">onfocusout</dfn>,
+          <dfn id="OnFocusEventAttribute">onfocus</dfn>,
+          <dfn id="OnBlurEventAttribute">onblur</dfn>,
           <dfn id="OnClickEventAttribute">onclick</dfn>,
           <dfn id="OnKeyDownEventAttribute">onkeydown</dfn>,
           <dfn id="OnKeyUpEventAttribute">onkeyup</dfn>,