davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.

Home Page:https://iframe-resizer.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scrolling attribute is deprecated

yoyecros opened this issue · comments

Describe the bug
The "scrolling" attribute is automatically added on the iframe tag, which is deprecated and causing accessibility issue.

To Reproduce
Just use the lib with any parameter

Expected behavior
Do not add deprecated attributes on the iframe tag

Screenshots
image

Desktop (please complete the following information):

  • OS: arch-linux
  • Browser: Firefox
  • Version: 110.0b9

Smartphone (please complete the following information):
Not used

Additional context
No additional context

You can disable it with scrolling: 'omit' option

Oh yes, it's working! Thanks :)

Hello, some update with this subject,
Using the scrolling: 'omit' option removes the attribute, but a scrollbar is shown in Chrome (we can't disable it, even with a overflow: hidder !important css rule)