Closed Bug 815420 Opened 12 years ago Closed 11 years ago

Current implementation of document.createTouch doesn't match the spec

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 855779

People

(Reporter: wesj, Unassigned)

Details

The currently published draft of the touch events spec:
http://www.w3.org/TR/touch-events/#widl-Document-createTouch-Touch-AbstractView-view-EventTarget-target-long-identifier-long-pageX-long-pageY-long-screenX-long-screenY

is different than what we currently have implemented. I think we're ok supporting some additional optional params on the end, but they should probably match the tip spec if we are:

https://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html#widl-Document-createTouch-Touch-AbstractView-view-EventTarget-target-long-identifier-long-pageX-long-pageY-long-screenX-long-screenY-long-radiusX-long-radiusY-float-rotationAngle-float-force

(note there is no clientX/Y there). Whether we keep clientX/Y in our implementation or not, we should make sure we initialize things correctly if they aren't passed in.

http://mxr.mozilla.org/mozilla-central/source/dom/interfaces/events/nsIDOMTouchEvent.idl#83
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.