Closed
Bug 1370550
Opened 7 years ago
Closed 7 years ago
onwheel is not present on HTMLElement
Categories
(Core :: DOM: Events, defect, P2)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: d, Assigned: bzbarsky)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
4.01 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
See tests in https://github.com/w3c/web-platform-tests/pull/6165. Unlike all other (implemented) GlobalEventHandlers, onwheel is not present on HTMLElement. It still works fine though, so it's implemented somehow.
Comment 1•7 years ago
|
||
It is in Element
Comment 2•7 years ago
|
||
Is this bug INVALID, then (the tests on that PR seem to pass in Firefox?)?
Flags: needinfo?(d)
Reporter | ||
Comment 3•7 years ago
|
||
No, the tests do not pass:
Fail onwheel: must be on the appropriate locations for GlobalEventHandlers assert_true: HTMLElement has an own property named "onwheel" expected true got false
@http://localhost:8000/html/webappapis/scripting/events/event-handler-all-global-events.html:27:9
Test.prototype.step@http://localhost:8000/resources/testharness.js:1408:20
test@http://localhost:8000/resources/testharness.js:498:9
@http://localhost:8000/html/webappapis/scripting/events/event-handler-all-global-events.html:25:5
Flags: needinfo?(d)
Assignee | ||
Comment 5•7 years ago
|
||
So right now we have "onwheel" on Document/Window/Element.
Spec has it on GlobalEventHandlers, which is implemented by HTMLElement/SVGElement/Window/XULElement/Document.
So moving it would effectively remove it from non-HTML/SVG element as far as the web is concerned.
Looks like our placement of it dates back to before it was actually in a spec at all, so we should just move it.
Assignee: nobody → bzbarsky
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8884987 -
Flags: review?(bugs)
Updated•7 years ago
|
Attachment #8884987 -
Flags: review?(bugs) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea84b4c23270
Move the onwheel attribute to GlobalEventHandlers, to follow the spec. r=smaug
Comment 8•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•7 years ago
|
Keywords: dev-doc-needed
Comment 9•7 years ago
|
||
I've made sure that HTMLElement is said to implement from GlobalEventHandlers:
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onwheel
I've also added a note to the Fx56 release notes:
https://developer.mozilla.org/en-US/Firefox/Releases/56#DOM
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•