You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/01/24 13:05:18 UTC

[GitHub] [cordova-js] raphinesse commented on pull request #245: Handle event listener functions more gracefully

raphinesse commented on pull request #245:
URL: https://github.com/apache/cordova-js/pull/245#issuecomment-1020078902


   Good catch! However, I think we might have to silently ignore any non-string arguments. `window.addEventListener(1, () => {})` does not throw an error either (tested in Chrome). Unfortunately, I could not find anything on input validation of the type argument in https://dom.spec.whatwg.org/#ref-for-dom-eventtarget-addeventlistener%E2%91%A2


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org