This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27709 - Dictionary MouseEventInit uses keyword attribute for its members
Summary: Dictionary MouseEventInit uses keyword attribute for its members
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Pointer Lock (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: scheib
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-27 19:53 UTC by Rainer Schuster
Modified: 2015-01-13 17:39 UTC (History)
3 users (show)

See Also:


Attachments

Description Rainer Schuster 2014-12-27 19:53:46 UTC
The specification states

partial dictionary MouseEventInit {
    attribute long movementX = 0;
    attribute long movementY = 0;
};

but it should be without the "attribute" keyword

partial dictionary MouseEventInit {
    long movementX = 0;
    long movementY = 0;
};
Comment 1 Ms2ger 2015-01-13 17:35:10 UTC
https://lists.w3.org/Archives/Public/public-webapps/2015JanMar/0156.html
> I could use more information here.
> http://www.w3.org/TR/DOM-Level-3-Events/#interface-MouseEvent specifies
> MouseEvent attributes with the attribute keyword. WebIDL description of
> attribute seems to apply here http://www.w3.org/TR/WebIDL/#idl-attributes.
> Why shouldn't the attribute keyword be used?

Because MouseEvent is an interface and MouseEventInit isn't. (It's a dictionary.)
Comment 2 scheib 2015-01-13 17:39:54 UTC
Thanks, fixed.