Re: [whatwg/dom] Add window.event as a legacy compat requirement (#407)

cvrebert commented on this pull request.



> @@ -742,6 +743,25 @@ method, when invoked, must run these steps:</p>
 incapable of setting {{Event/composed}}. It has to be supported for legacy content.
 
 
+<h3 id=interface-window-extensions>Legacy extensions to the {{Window}} interface</h3>
+
+<pre class=idl>
+partial interface Window {
+  [Replaceable] readonly attribute any event; // historical
+};
+</pre>
+
+<p>Each {{Window}} object has an associated <dfn for=Window>current event</dfn> (undefined or an
+{{Event}} object). Unless stated otherwise it is undefined.
+
+<p>The <dfn attribute for=Window><code>event</code></dfn> attribute's getter, when invoked, must
+return the <a>context object</a>'s <a for=Window>current event</a>.
+
+<p class=note>Web developers are strongly encouraged to instead rely on {{Event}} object passed to

> on {{Event}} object passed

Bad grammar here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/407#pullrequestreview-112256862

Received on Sunday, 15 April 2018 23:59:12 UTC