Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 50f51cc

Browse files
author
Chong Zhang
committed
Added legacy interface initTouchEvent
changed params to required Name unused variables as 'unused' Moved initTouchEvent note to legacy section Updated note to be 'standardized', non-duplicated arguments and 'normative'
1 parent b650132 commit 50f51cc

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

index.html

+23-10
Original file line numberDiff line numberDiff line change
@@ -803,16 +803,6 @@ <h2>Extensions to the <a><code>Document</code></a> Interface</h2>
803803
</dl>
804804
</dd>
805805
</dl>
806-
807-
<p class="note">
808-
Some user agents implement an <code>initTouchEvent</code> method as part of the
809-
<a><code>TouchEvent</code></a> interface. When this method is available, scripts
810-
can use it to initialize the properties of a <a><code>TouchEvent</code></a> object,
811-
including its <a><code>TouchList</code></a> properties (which can be initialized
812-
with values returned from <a href="#widl-Document-createTouchList-TouchList-Touch-touches"><code>createTouchList</code></a>). The
813-
<a><code>initTouchEvent</code></a> method is not standardized and is
814-
superseded by the <code>TouchEvent</code> constructor.
815-
</p>
816806
</section>
817807

818808
<section>
@@ -949,6 +939,29 @@ <h2>Issues</h2>
949939
</p>
950940
</section>
951941

942+
<section class='appendix'>
943+
<h2>Legacy Event Initializers</h2>
944+
<p>
945+
<em>The following features are obsolete and should only be implemented by user agents that require compatibility with legacy software.</em>
946+
</p>
947+
948+
<section>
949+
<h3>Initializers for interface TouchEvent</h3>
950+
<p class="note">
951+
The argument list to this legacy TouchEvent initializer includes 6 unused arguments
952+
which have no defined semantics and are only for compatibility with existing implementations.
953+
The <a><code>initTouchEvent</code></a> method is superseded by the <code>TouchEvent</code> constructor.
954+
</p>
955+
<pre class='idl'>
956+
partial interface TouchEvent {
957+
// Deprecated in this specification
958+
void initTouchEvent (DOMString type, boolean bubbles, boolean cancelable, Window? view, long detail, long unused1, long unused2, long unused3, long unused4, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, TouchList touches, TouchList targetTouches, TouchList changedTouches, float unused5, float unused6);
959+
};
960+
</pre>
961+
</section>
962+
963+
</section>
964+
952965
<section class='appendix informative'>
953966
<h2>Acknowledgements</h2>
954967
<p>

0 commit comments

Comments
 (0)