@locker/eslint-plugin-locker
Version:
Lightning Web Security ESLint rules
13 lines (8 loc) • 344 B
Markdown
# Prevent access to certain HTMLIFrameElement properties (distorted-html-iframe-element-blocked-properties)
For security the following `HTMLIFrameElement` properties are prohibited when Lightning Web Security is enabled:
- srcdoc
## Rule Details
Example of **incorrect** code:
```js
document.getElementsByTagName('iframe')[0].srcdoc;
```