ShadyDOM's addEventListenerimplementation only allows non-boolean event listener options passed in as objects. If a function is passed, the event will always capture, which is incorrect. Instead of checking if the options are an object, we can probably check that they are not a boolean.
Note, noPatch users cannot rely on this patch anyway and need a separate polyfill if they want to use event options.
Description
ShadyDOM's
addEventListener
implementation only allows non-boolean event listener options passed in as objects. If a function is passed, the event will always capture, which is incorrect. Instead of checking if the options are an object, we can probably check that they are not a boolean.Note,
noPatch
users cannot rely on this patch anyway and need a separate polyfill if they want to use event options.Browsers affected