Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch constructor is not available #2152

Open
jfirebaugh opened this issue Feb 15, 2018 · 1 comment
Open

Touch constructor is not available #2152

jfirebaugh opened this issue Feb 15, 2018 · 1 comment
Labels

Comments

@jfirebaugh
Copy link

jfirebaugh commented Feb 15, 2018

Basic info:

  • Node.js version: v8.9.3
  • jsdom version: 11.6.2

Minimal reproduction case

const { JSDOM } = require("jsdom");
const dom = new JSDOM();
new dom.window.Touch({identifier: '', target: dom.window});

This throws "TypeError: dom.window.Touch is not a constructor."

How does similar code behave in browsers?

It works: http://jsbin.com/tavariviju/edit?js,console

Standard: https://w3c.github.io/touch-events/#touch-interface

@detj
Copy link

detj commented Nov 25, 2020

#1508 is a duplicate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants