From c984b8394dbe0ef4eae460efa9dad6ddb8b414e0 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 Depends on 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