[Bug 20236] 3.1.1.1 button value -1 isn't possible

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20236

--- Comment #1 from Jacob Rossi [MSFT] <jrossi@microsoft.com> ---
Here's my thinking on this issue:

1) Current PE spec text changes the values of button/buttons when firing
pointer events
2) Current PE spec text does not change the values used when firing mouse
events
3) DOM L3 Events defines button/buttons as an unsigned short
4) D3E implementations do not have interop* on how to handle the edge-case
where you create a MouseEvent with a negative value for button.
4) (signed) short allows all the values required by D3E and also those by PE

So my suggestion to resolve this issue is as follows:

1) Leave D3E spec as is.
2) Add to PE spec a partial MouseEvent interface that redefines button and
buttons as short instead of unsigned short.
3) Include a note that PE's definition supersedes D3E and that implementations


* Using this test code:
var m = document.createEvent("MouseEvent");
m.initMouseEvent("mousedown",
true,true,window,null,0,0,0,0,false,false,false,false, -1, null); 
console.log(m.button)

Gecko: 65535 (wraps around), Webkit: 0 (snaps), IE9: -1

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 4 December 2012 18:40:21 UTC