Open
Bug 855779
Opened 11 years ago
Updated 2 years ago
document.createTouch does not match the specification; requires explicit clientX/clientY
Categories
(Core :: DOM: Events, defect, P5)
Core
DOM: Events
Tracking
()
NEW
People
(Reporter: mbrubeck, Unassigned)
References
()
Details
(Keywords: compat)
Gecko's implementation of document.createTouch is not compatible with the Touch Events v1 spec, or the behavior of other browser. This causes a failure in the createTouch test at: http://w3c-test.org/webevents/tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html
![]() |
||
Comment 1•11 years ago
|
||
Details? Which part of the test do we fail, and how does our behavior differ from other UAs?
Reporter | ||
Comment 2•11 years ago
|
||
Gecko expects separate clientX and clientY arguments to createTouch. These arguments are not present in other browsers. Other browsers set the clientX and clientY properties based on the pageX and pageY arguments. The test failure is: "assert_equals: touch.clientX is touch.pageX - window.pageXOffset. expected 15 but got 0"
Summary: document.createTouch does not match the specification → document.createTouch does not match the specification; requires explicit clientX/clientY
![]() |
||
Comment 3•11 years ago
|
||
Ah, I see. So just a matter of ripping out the client* from the _middle_ of the signature (and hoping no one is using it, fun) and computing them on the back end, ok.... The spec does not define how the clientX and clientY are computed. It probably needs to do that, if it's testing something about it.
When this stuff was implemented, we followed the spec.
Comment 6•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•