eslint-plugin-compat
eslint-plugin-compat copied to clipboard
[QUESTION] Detect `showModal` method from `dialog` element
Hi,
Currently, if I write the following code, the showModal method is not detected as a problem:
const dialog = document.createElement('dialog')
dialog.showModal()
With this .browserslistrc configuration:
last 10 ie versions
But according to caniuse.com, it is indeed not compatible: https://caniuse.com/mdn-api_htmldialogelement_showmodal
Is this a bug or something that is not currently in place in the library? Is it even possible to detect? In any case, thank you for this awesome librairie 😁