Re: [whatwg/dom] Add window.event, event.srcElement, event.returnValue as a legacy compat requirements (#407)

domenic commented on this pull request.



> @@ -733,6 +736,12 @@ The <dfn attribute for=Event><code>bubbles</code></dfn> and
 <dfn attribute for=Event><code>cancelable</code></dfn> attributes
 must return the values they were initialized to.
 
+The <dfn attribute for=Event><code>returnValue</code></dfn>
+attribute must be initialized to true when an <a>event</a> is created.
+When the attribute is set to false it must set the <a>canceled flag</a> if the
+{{Event/cancelable}} attribute value is true and the
+<a>in passive listener flag</a> is unset.

Do implementations update returnValue if the event gets canceled by e.g. preventDefault()?

-- 
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-26148983

Received on Thursday, 9 March 2017 21:31:49 UTC