[Bug 25346] New: Redefine initMouseEvent()

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

            Bug ID: 25346
           Summary: Redefine initMouseEvent()
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM3 Events
          Assignee: travil@microsoft.com
          Reporter: crimsteam@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

At this moment this method is not compatibile with old D2E. Define one
additional parameter (buttons) may throwing error (like in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=995795).

Actual WebIDL def:
void initMouseEvent (DOMString type, boolean bubbles, boolean cancelable,
             Window? view, long detail, long screenX,
             long screenY, long clientX, long clientY,
             boolean ctrlKey, boolean altKey, boolean shiftKey,
             boolean metaKey, short button, unsigned short buttons
             EventTarget? relatedTarget);

Maybe it will better if D3E spec add this new parameter at the end of method (
and even make it optional), sth like this:

void initMouseEvent (DOMString type, boolean bubbles, boolean cancelable,
             Window? view, long detail, long screenX,
             long screenY, long clientX, long clientY,
             boolean ctrlKey, boolean altKey, boolean shiftKey,
             boolean metaKey, short button, EventTarget? relatedTarget,
             optional unsigned short buttons);

Btw, can you brake all init*Event method in D3E spec after some parameters (3
or 4)? Now we have all in one line and this causes an unnecessary scrollbar in
bottom.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 15 April 2014 09:45:20 UTC