Fix bug 20236 - W3C Pointer Events specification needs inherited MouseEvent.button IDL attribute to support -1
Changed the type from unsigned short to short.
--- a/html/DOM3-Events.html Tue Dec 03 17:34:32 2013 -0800
+++ b/html/DOM3-Events.html Thu Feb 13 14:55:09 2014 -0800
@@ -2939,7 +2939,7 @@
</p>
</dd>
- <dt>readonly attribute unsigned short button</dt>
+ <dt>readonly attribute short button</dt>
<dd>
<p>During mouse events caused by the depression or release of a mouse button,
<code>button</code> MUST be used to indicate which pointer device button
@@ -2961,8 +2961,8 @@
(in general, the right button, often used to display a context menu).</li>
</ul>
- <p>Some pointing devices provide or simulate more buttons, and values higher than
- <code>2</code> MAY be used to represent such buttons.
+ <p>Some pointing devices provide or simulate more button states, and values higher than
+ <code>2</code> or lower than <code>0</code> MAY be used to represent such buttons.
</p>
<p class="note"><strong>Note:</strong>
@@ -3146,11 +3146,11 @@
</p>
</dd>
- <dt>unsigned short button = 0</dt>
+ <dt>short button = 0</dt>
<dd>
<p>Initializes the <code>button</code> attribute of the MouseEvent
- object to a number representing one of the button(s) of the mouse
- that is to be considered active.
+ object to a number representing the desired state of the button(s)
+ of the mouse.
</p>
<p class="note"><strong>Note:</strong>
@@ -8912,7 +8912,7 @@
<p>Specifies <a href="#widl-MouseEvent-metaKey"><code>MouseEvent.metaKey</code></a>.</p>
</dd>
- <dt>unsigned short buttonArg</dt>
+ <dt>short buttonArg</dt>
<dd>
<p>Specifies <a href="#widl-MouseEvent-button"><code>MouseEvent.button</code></a>.</p>
</dd>
@@ -8978,7 +8978,7 @@
<dt>long clientYArg</dt>
<dd><p>Refer to the <a href="#widl-MouseEvent-initMouseEvent"><code>MouseEvent.initMouseEvent()</code></a> method for a description of this parameter.</p></dd>
- <dt>unsigned short buttonArg</dt>
+ <dt>short buttonArg</dt>
<dd><p>Refer to the <a href="#widl-MouseEvent-initMouseEvent"><code>MouseEvent.initMouseEvent()</code></a> method for a description of this parameter.</p></dd>
<dt>EventTarget? relatedTargetArg</dt>