Re: [whatwg/dom] Standardize certain Microsoft event extensions (#334)

do we know how often assigning the return value from true to false occurs?

I'd prefer if the implementation was essentially pollyfill-able;

For example:
bool legacyReturnValue() const { return !defaultPrevented(); }
void setLegacyReturnValue(bool returnValue) { if (returnValue) preventDefault(); }

Which specifically disallows the true->false transition. (much like the setCancelBubble debate)


-- 
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/issues/334#issuecomment-266026074

Received on Friday, 9 December 2016 14:29:00 UTC