This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In 3.1.1.1 there is -1 value for button. That isn't possible since button is unsigned short.
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
(In reply to comment #1) > 2) Add to PE spec a partial MouseEvent interface that redefines button and > buttons as short instead of unsigned short. As far as I know, you can't redefine property to be different type in partial interface. I'd be surprised if it is possible even in inheriting interface. Need to check what WebIDL says.
The suggestion isn't that a partial interface can redefine another interface. I don't think WebIDL has a convention for one spec to override another. I think the only way to redefine an interface is via explicit spec text that says Pointer Events' definition supersedes DOM L3 Events' definition. The reason I suggested it be a partial interface is just because we only need to mention button and buttons. No need to completely redefine MouseEvent.
Sent mail to WebApps to request this change be made to DOM L3 & UI Events. http://lists.w3.org/Archives/Public/www-dom/2013JanMar/0080.html
Moving (with JRossi's permission) to DOM3 Events.
Fixed just now in editor's draft: https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html unsigned short -> short in various places.