eslint-plugin-compat icon indicating copy to clipboard operation
eslint-plugin-compat copied to clipboard

[QUESTION] Detect `showModal` method from `dialog` element

Open KirianCaumes opened this issue 1 year ago • 0 comments

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 😁

KirianCaumes avatar May 23 '24 17:05 KirianCaumes