From 996ac3c3693d7883d9e120e31e9ab6f09f1d4072 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Fri, 8 Apr 2022 16:22:54 +0200 Subject: [PATCH] Maybe throw NotSupportedError for createEvent('touchevent') See https://github.com/w3c/touch-events/issues/64 The term "expose legacy touch event APIs" was introduced in https://github.com/w3c/touch-events/pull/111 --- dom.bs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom.bs b/dom.bs index 4f4a767a1..55b73944d 100644 --- a/dom.bs +++ b/dom.bs @@ -5390,6 +5390,11 @@ are:
  1. Let constructor be null. +

  2. +

    If interface is an ASCII case-insensitive match for "touchevent" + and the user agent's expose legacy touch event APIs is false, then throw a + "{{NotSupportedError!!exception}}" {{DOMException}}. +

  3. If interface is an ASCII case-insensitive match for any of the strings in the first column in the following table, then set constructor to the interface in the