- From: Sam Ruby via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 10 Sep 2012 18:14:04 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv7301 Modified Files: commands.html dnd.html infrastructure.html single-page.html spec.html the-menu-element.html webappapis.html Log Message: commit 297e6e65177e0e08800b9c0e9ee2caed55e8cd7e Author: Travis Leithead <travil@microsoft.com> Date: Mon Sep 10 10:56:42 2012 -0700 [HTML5 Bug 14895] Fixed reference to MouseEventInit Removed normative reference to non-normative MouseEventInit dictionary in DOM Level 3 Events by absorbing the relevant portions of the dictionary definition into HTML5. Index: infrastructure.html =================================================================== RCS file: /sources/public/html5/spec/infrastructure.html,v retrieving revision 1.1297 retrieving revision 1.1298 diff -u -d -r1.1297 -r1.1298 --- infrastructure.html 10 Sep 2012 14:14:30 -0000 1.1297 +++ infrastructure.html 10 Sep 2012 18:14:01 -0000 1.1298 @@ -1187,9 +1187,22 @@ specification: <a href="references.html#refsDOMEVENTS">[DOMEVENTS]</a></p> <ul class="brief"><li><dfn id="mouseevent"><code>MouseEvent</code></dfn> interface</li> - <li><dfn id="mouseeventinit"><code>MouseEventInit</code></dfn> dictionary type</li> - <li>The <dfn id="uievent"><code>UIEvent</code></dfn> interface's <dfn id="dom-uievent-detail" title="dom-UIEvent-detail"><code>detail</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-0"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-screenx" title="dom-MouseEvent-screenX"><code>screenX</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-1"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-screeny" title="dom-MouseEvent-screenY"><code>screenY</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-2"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-clientx" title="dom-MouseEvent-clientX"><code>clientX</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-3"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-clienty" title="dom-MouseEvent-clientY"><code>clientY</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-4"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-ctrlkey" title="dom-MouseEvent-ctrlKey"><code>ctrlKey</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-5"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-shiftkey" title="dom-MouseEvent-shiftKey"><code>shiftKey</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-6"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-altkey" title="dom-MouseEvent-altKey"><code>altKey</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-7"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-metakey" title="dom-MouseEvent-metaKey"><code>metaKey</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-8"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-button" title="dom-MouseEvent-button"><code>button</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-9"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-buttons" title="dom-MouseEvent-buttons"><code>buttons</code></dfn> attribute</li> + <li>The <dfn id="mouseevent-10"><code>MouseEvent</code></dfn> interface's <dfn id="dom-mouseevent-relatedtarget" title="dom-MouseEvent-relatedTarget"><code>relatedTarget</code></dfn> attribute</li> + + <li>The <dfn id="uievent"><code>UIEvent</code></dfn> interface's <dfn id="dom-uievent-view" title="dom-UIEvent-view"><code>view</code></dfn> attribute</li> + <li>The <dfn id="uievent-0"><code>UIEvent</code></dfn> interface's <dfn id="dom-uievent-detail" title="dom-UIEvent-detail"><code>detail</code></dfn> attribute</li> + <li><dfn id="event-click" title="event-click"><code>click</code></dfn> event</li> Index: dnd.html =================================================================== RCS file: /sources/public/html5/spec/dnd.html,v retrieving revision 1.261 retrieving revision 1.262 diff -u -d -r1.261 -r1.262 --- dnd.html 10 Sep 2012 14:14:29 -0000 1.261 +++ dnd.html 10 Sep 2012 18:14:01 -0000 1.262 @@ -1508,11 +1508,27 @@ all use the <code><a href="#dragevent">DragEvent</a></code> interface.</p> <pre class="idl">[Constructor(DOMString type, optional <a href="#drageventinit">DragEventInit</a> eventInitDict)] -interface <dfn id="dragevent">DragEvent</dfn> : <a href="infrastructure.html#mouseevent">MouseEvent</a> { +interface <dfn id="dragevent">DragEvent</dfn> : <a href="infrastructure.html#mouseevent-10">MouseEvent</a> { readonly attribute <a href="#datatransfer">DataTransfer</a>? <a href="#dom-dragevent-datatransfer" title="dom-DragEvent-dataTransfer">dataTransfer</a>; }; -dictionary <dfn id="drageventinit">DragEventInit</dfn> : <a href="infrastructure.html#mouseeventinit">MouseEventInit</a> { +dictionary <dfn id="drageventinit">DragEventInit</dfn> : <a href="infrastructure.html#eventinit">EventInit</a> { + // Attributes from UIEvent: + <a href="browsers.html#window">Window</a>? <a href="infrastructure.html#dom-uievent-view" title="dom-UIEvent-view">view</a> = null; + long <a href="infrastructure.html#dom-uievent-detail" title="dom-UIEvent-detail">detail</a> = 0; + // Attributes for MouseEvent: + long <a href="infrastructure.html#dom-mouseevent-screenx" title="dom-MouseEvent-screenX">screenX</a> = 0; + long <a href="infrastructure.html#dom-mouseevent-screeny" title="dom-MouseEvent-screenY">screenY</a> = 0; + long <a href="infrastructure.html#dom-mouseevent-clientx" title="dom-MouseEvent-clientX">clientX</a> = 0; + long <a href="infrastructure.html#dom-mouseevent-clienty" title="dom-MouseEvent-clientY">clientY</a> = 0; + boolean <a href="infrastructure.html#dom-mouseevent-ctrlkey" title="dom-MouseEvent-ctrlKey">ctrlKey</a> = false; + boolean <a href="infrastructure.html#dom-mouseevent-shiftkey" title="dom-MouseEvent-shiftKey">shiftKey</a> = false; + boolean <a href="infrastructure.html#dom-mouseevent-altkey" title="dom-MouseEvent-altKey">altKey</a> = false; + boolean <a href="infrastructure.html#dom-mouseevent-metakey" title="dom-MouseEvent-metaKey">metaKey</a> = false; + unsigned short <a href="infrastructure.html#dom-mouseevent-button" title="dom-MouseEvent-button">button</a> = 0; + unsigned short <a href="infrastructure.html#dom-mouseevent-buttons" title="dom-MouseEvent-buttons">buttons</a> = 0; + EventTarget? <a href="infrastructure.html#dom-mouseevent-relatedtarget" title="dom-MouseEvent-relatedTarget">relatedTarget</a> = null; + // Attributes for <a href="#dragevent">DragEvent</a>: <a href="#datatransfer">DataTransfer</a>? dataTransfer; };</pre> Index: the-menu-element.html =================================================================== RCS file: /sources/public/html5/spec/the-menu-element.html,v retrieving revision 1.171 retrieving revision 1.172 diff -u -d -r1.171 -r1.172 --- the-menu-element.html 10 Sep 2012 14:14:36 -0000 1.171 +++ the-menu-element.html 10 Sep 2012 18:14:02 -0000 1.172 @@ -583,10 +583,10 @@ <dl class="switch"><dt>If the user requested a context menu using a pointing device</dt> <dd><p>The user agent must fire an event with the name <code title="event-contextmenu">contextmenu</code>, that bubbles and is - cancelable, and that uses the <code><a href="infrastructure.html#mouseevent">MouseEvent</a></code> interface, at + cancelable, and that uses the <code><a href="infrastructure.html#mouseevent-10">MouseEvent</a></code> interface, at the element for which the menu was requested. The context information of the event must be initialized to the same values as - the last <code><a href="infrastructure.html#mouseevent">MouseEvent</a></code> user interaction event that was + the last <code><a href="infrastructure.html#mouseevent-10">MouseEvent</a></code> user interaction event that was fired as part of the gesture that that was interpreted as a request for the context menu.</p></dd> Index: commands.html =================================================================== RCS file: /sources/public/html5/spec/commands.html,v retrieving revision 1.223 retrieving revision 1.224 diff -u -d -r1.223 -r1.224 --- commands.html 10 Sep 2012 14:14:28 -0000 1.223 +++ commands.html 10 Sep 2012 18:14:01 -0000 1.224 @@ -1049,8 +1049,8 @@ <pre class="idl">interface <dfn id="htmldialogelement">HTMLDialogElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> { attribute boolean <a href="#dom-dialog-open" title="dom-dialog-open">open</a>; attribute DOMString <a href="#dom-dialog-returnvalue" title="dom-dialog-returnValue">returnValue</a>; - void <a href="#dom-dialog-show" title="dom-dialog-show">show</a>(optional (<a href="infrastructure.html#mouseevent">MouseEvent</a> or <a href="infrastructure.html#element">Element</a>) anchor); - void <a href="#dom-dialog-showmodal" title="dom-dialog-showModal">showModal</a>(optional (<a href="infrastructure.html#mouseevent">MouseEvent</a> or <a href="infrastructure.html#element">Element</a>) anchor); + void <a href="#dom-dialog-show" title="dom-dialog-show">show</a>(optional (<a href="infrastructure.html#mouseevent-10">MouseEvent</a> or <a href="infrastructure.html#element">Element</a>) anchor); + void <a href="#dom-dialog-showmodal" title="dom-dialog-showModal">showModal</a>(optional (<a href="infrastructure.html#mouseevent-10">MouseEvent</a> or <a href="infrastructure.html#element">Element</a>) anchor); void <a href="#dom-dialog-close" title="dom-dialog-close">close</a>(optional DOMString returnValue); };</pre> </dd> @@ -1280,7 +1280,7 @@ <ol><li> - <p>If <var title="">anchor</var> is a <code><a href="infrastructure.html#mouseevent">MouseEvent</a></code> + <p>If <var title="">anchor</var> is a <code><a href="infrastructure.html#mouseevent-10">MouseEvent</a></code> object, then run these substeps:</p> <ol><li><p>If <var title="">anchor</var>'s target element does not Index: single-page.html =================================================================== RCS file: /sources/public/html5/spec/single-page.html,v retrieving revision 1.102 retrieving revision 1.103 diff -u -d -r1.102 -r1.103 --- single-page.html 10 Sep 2012 14:14:32 -0000 1.102 +++ single-page.html 10 Sep 2012 18:14:01 -0000 1.103 @@ -3694,9 +3694,22 @@ specification: <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p> <ul class=brief><li><dfn id=mouseevent><code>MouseEvent</code></dfn> interface</li> - <li><dfn id=mouseeventinit><code>MouseEventInit</code></dfn> dictionary type</li> - <li>The <dfn id=uievent><code>UIEvent</code></dfn> interface's <dfn id=dom-uievent-detail title=dom-UIEvent-detail><code>detail</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-0><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-screenx title=dom-MouseEvent-screenX><code>screenX</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-1><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-screeny title=dom-MouseEvent-screenY><code>screenY</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-2><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-clientx title=dom-MouseEvent-clientX><code>clientX</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-3><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-clienty title=dom-MouseEvent-clientY><code>clientY</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-4><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-ctrlkey title=dom-MouseEvent-ctrlKey><code>ctrlKey</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-5><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-shiftkey title=dom-MouseEvent-shiftKey><code>shiftKey</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-6><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-altkey title=dom-MouseEvent-altKey><code>altKey</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-7><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-metakey title=dom-MouseEvent-metaKey><code>metaKey</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-8><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-button title=dom-MouseEvent-button><code>button</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-9><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-buttons title=dom-MouseEvent-buttons><code>buttons</code></dfn> attribute</li> + <li>The <dfn id=mouseevent-10><code>MouseEvent</code></dfn> interface's <dfn id=dom-mouseevent-relatedtarget title=dom-MouseEvent-relatedTarget><code>relatedTarget</code></dfn> attribute</li> + + <li>The <dfn id=uievent><code>UIEvent</code></dfn> interface's <dfn id=dom-uievent-view title=dom-UIEvent-view><code>view</code></dfn> attribute</li> + <li>The <dfn id=uievent-0><code>UIEvent</code></dfn> interface's <dfn id=dom-uievent-detail title=dom-UIEvent-detail><code>detail</code></dfn> attribute</li> + <li><dfn id=event-click title=event-click><code>click</code></dfn> event</li> @@ -50379,10 +50392,10 @@ <dl class=switch><dt>If the user requested a context menu using a pointing device</dt> <dd><p>The user agent must fire an event with the name <code title=event-contextmenu>contextmenu</code>, that bubbles and is - cancelable, and that uses the <code><a href=#mouseevent>MouseEvent</a></code> interface, at + cancelable, and that uses the <code><a href=#mouseevent-10>MouseEvent</a></code> interface, at the element for which the menu was requested. The context information of the event must be initialized to the same values as - the last <code><a href=#mouseevent>MouseEvent</a></code> user interaction event that was + the last <code><a href=#mouseevent-10>MouseEvent</a></code> user interaction event that was fired as part of the gesture that that was interpreted as a request for the context menu.</p></dd> @@ -51192,8 +51205,8 @@ <pre class=idl>interface <dfn id=htmldialogelement>HTMLDialogElement</dfn> : <a href=#htmlelement>HTMLElement</a> { attribute boolean <a href=#dom-dialog-open title=dom-dialog-open>open</a>; attribute DOMString <a href=#dom-dialog-returnvalue title=dom-dialog-returnValue>returnValue</a>; - void <a href=#dom-dialog-show title=dom-dialog-show>show</a>(optional (<a href=#mouseevent>MouseEvent</a> or <a href=#element>Element</a>) anchor); - void <a href=#dom-dialog-showmodal title=dom-dialog-showModal>showModal</a>(optional (<a href=#mouseevent>MouseEvent</a> or <a href=#element>Element</a>) anchor); + void <a href=#dom-dialog-show title=dom-dialog-show>show</a>(optional (<a href=#mouseevent-10>MouseEvent</a> or <a href=#element>Element</a>) anchor); + void <a href=#dom-dialog-showmodal title=dom-dialog-showModal>showModal</a>(optional (<a href=#mouseevent-10>MouseEvent</a> or <a href=#element>Element</a>) anchor); void <a href=#dom-dialog-close title=dom-dialog-close>close</a>(optional DOMString returnValue); };</pre> </dd> @@ -51423,7 +51436,7 @@ <ol><li> - <p>If <var title="">anchor</var> is a <code><a href=#mouseevent>MouseEvent</a></code> + <p>If <var title="">anchor</var> is a <code><a href=#mouseevent-10>MouseEvent</a></code> object, then run these substeps:</p> <ol><li><p>If <var title="">anchor</var>'s target element does not @@ -62221,7 +62234,7 @@ mouse event named <var title="">e</var></dfn> means that an event with the name <var title="">e</var>, which does not bubble (except where otherwise stated) and is not cancelable (except where - otherwise stated), and which uses the <code><a href=#mouseevent>MouseEvent</a></code> + otherwise stated), and which uses the <code><a href=#mouseevent-10>MouseEvent</a></code> interface, must be created and dispatched at the given target. The event object must have its <code title="">screenX</code>, <code title="">screenY</code>, <code title="">clientX</code>, <code title="">clientY</code>, and <code title="">button</code> attributes initialized to 0, its <code title="">ctrlKey</code>, <code title="">shiftKey</code>, <code title="">altKey</code>, and <code title="">metaKey</code> attributes initialized according to the @@ -66591,11 +66604,27 @@ all use the <code><a href=#dragevent>DragEvent</a></code> interface.</p> <pre class=idl>[Constructor(DOMString type, optional <a href=#drageventinit>DragEventInit</a> eventInitDict)] -interface <dfn id=dragevent>DragEvent</dfn> : <a href=#mouseevent>MouseEvent</a> { +interface <dfn id=dragevent>DragEvent</dfn> : <a href=#mouseevent-10>MouseEvent</a> { readonly attribute <a href=#datatransfer>DataTransfer</a>? <a href=#dom-dragevent-datatransfer title=dom-DragEvent-dataTransfer>dataTransfer</a>; }; -dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit>MouseEventInit</a> { +dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#eventinit>EventInit</a> { + // Attributes from UIEvent: + <a href=#window>Window</a>? <a href=#dom-uievent-view title=dom-UIEvent-view>view</a> = null; + long <a href=#dom-uievent-detail title=dom-UIEvent-detail>detail</a> = 0; + // Attributes for MouseEvent: + long <a href=#dom-mouseevent-screenx title=dom-MouseEvent-screenX>screenX</a> = 0; + long <a href=#dom-mouseevent-screeny title=dom-MouseEvent-screenY>screenY</a> = 0; + long <a href=#dom-mouseevent-clientx title=dom-MouseEvent-clientX>clientX</a> = 0; + long <a href=#dom-mouseevent-clienty title=dom-MouseEvent-clientY>clientY</a> = 0; + boolean <a href=#dom-mouseevent-ctrlkey title=dom-MouseEvent-ctrlKey>ctrlKey</a> = false; + boolean <a href=#dom-mouseevent-shiftkey title=dom-MouseEvent-shiftKey>shiftKey</a> = false; + boolean <a href=#dom-mouseevent-altkey title=dom-MouseEvent-altKey>altKey</a> = false; + boolean <a href=#dom-mouseevent-metakey title=dom-MouseEvent-metaKey>metaKey</a> = false; + unsigned short <a href=#dom-mouseevent-button title=dom-MouseEvent-button>button</a> = 0; + unsigned short <a href=#dom-mouseevent-buttons title=dom-MouseEvent-buttons>buttons</a> = 0; + EventTarget? <a href=#dom-mouseevent-relatedtarget title=dom-MouseEvent-relatedTarget>relatedTarget</a> = null; + // Attributes for <a href=#dragevent>DragEvent</a>: <a href=#datatransfer>DataTransfer</a>? dataTransfer; };</pre> Index: webappapis.html =================================================================== RCS file: /sources/public/html5/spec/webappapis.html,v retrieving revision 1.377 retrieving revision 1.378 diff -u -d -r1.377 -r1.378 --- webappapis.html 10 Sep 2012 14:14:39 -0000 1.377 +++ webappapis.html 10 Sep 2012 18:14:02 -0000 1.378 @@ -1746,7 +1746,7 @@ mouse event named <var title="">e</var></dfn> means that an event with the name <var title="">e</var>, which does not bubble (except where otherwise stated) and is not cancelable (except where - otherwise stated), and which uses the <code><a href="infrastructure.html#mouseevent">MouseEvent</a></code> + otherwise stated), and which uses the <code><a href="infrastructure.html#mouseevent-10">MouseEvent</a></code> interface, must be created and dispatched at the given target. The event object must have its <code title="">screenX</code>, <code title="">screenY</code>, <code title="">clientX</code>, <code title="">clientY</code>, and <code title="">button</code> attributes initialized to 0, its <code title="">ctrlKey</code>, <code title="">shiftKey</code>, <code title="">altKey</code>, and <code title="">metaKey</code> attributes initialized according to the
Received on Monday, 10 September 2012 18:14:11 UTC