Closed Bug 1370550 Opened 7 years ago Closed 7 years ago

onwheel is not present on HTMLElement

Categories

(Core :: DOM: Events, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: d, Assigned: bzbarsky)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

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.
It is in Element
Is this bug INVALID, then (the tests on that PR seem to pass in Firefox?)?
Flags: needinfo?(d)
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)
Sorry, didn't see that. We'll figure something out here.
Priority: -- → P2
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
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
https://hg.mozilla.org/mozilla-central/rev/ea84b4c23270
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: