From 0ece38973f310bdaa97ca332109ecf962d64cebe Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Mon, 7 Dec 2015 15:41:42 -0500 Subject: [PATCH] Moved createTouch* to legacy section Fixed grammar and typo --- index.html | 65 +++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 35 deletions(-) diff --git a/index.html b/index.html index 92fd720..5f0e129 100644 --- a/index.html +++ b/index.html @@ -770,41 +770,6 @@

The touchcancel -
-

Extensions to the Document Interface

-

- The Document interface [[!DOM-LEVEL-3-CORE]] contains methods - by which the user can create Touch and TouchList - objects. -

- -
-
Touch createTouch()
-
- Creates a Touch object with the specified attributes. -
-
WindowProxy view
-
EventTarget target
-
long identifier
-
double pageX
-
double pageY
-
double screenX
-
double screenY
-
-
- -
TouchList createTouchList()
-
- Creates a TouchList object consisting of zero or more Touch objects. - Calling this method with no arguments creates a TouchList with no objects in it - and length 0 (zero). -
-
Touch... touches
-
-
-
-
-

Extensions to the GlobalEventHandlers interface

The following section describes extensions to the existing GlobalEventHandlers interface, defined in [[!HTML5]], to facilitate the event handler registration.

@@ -945,6 +910,36 @@

Legacy Event Initializers

The following features are obsolete and should only be implemented by user agents that require compatibility with legacy software.

+
+

Extensions to the Document Interface

+

+ The Document interface [[!DOM-LEVEL-3-CORE]] contains methods + by which the user can create Touch and TouchList + objects. +

+ +
+

+ Document.createTouch is superseded by the Touch constructor. +

+

+ Document.createTouchList creates a TouchList object + consisting of zero or more Touch objects. Document.createTouchList + is superseded by passing sequences of Touch objects directly to the + TouchEvent constructor. +

+
+ +
+          partial interface Document {
+            // Deprecated in this specification
+            Touch createTouch (WindowProxy view, EventTarget target, long identifier, double pageX, double pageY, double screenX, double screenY);
+            // Deprecated in this specification
+            TouchList createTouchList (Touch... touches);
+          };
+        
+
+

Initializers for interface TouchEvent