@locker/eslint-plugin-locker
Version:
Lightning Web Security ESLint rules
19 lines (14 loc) • 429 B
Markdown
# Prevent access to certain Element properties (distorted-element-blocked-properties)
The following `Element` properties are prohibited when Lightning Web Security is enabled:
- mozRequestFullScreen
- onfullscreenchange
- onfullscreenerror
- requestFullscreen
- setHTMLUnsafe
- webkitRequestFullScreen
- webkitRequestFullscreen
## Rule Details
Example of **incorrect** code:
```js
video.onfullscreenchange;
```