Uh oh!
There was an error while loading. Please reload this page.
Add allow prop to html.Iframe - #179
Conversation
alexcjohnson
commented
Feb 8, 2021
Thanks @AnnMarieW for kicking this off! I see one other attribute we might want to add to iframes right now, Then perhaps it would be worthwhile to add a simple test in test_integration that these attributes show up in the DOM when you add them to an iframe? |
alexcjohnson
left a comment
There was a problem hiding this comment.
Great! Nice simple test addition. Let's add a changelog entry - which will hopefully rerun tests with the latest dash dev branch to fix the Py3.6 tests... then this should be good to go! 💃
I think this covers everything we want from #77, so I'd change the lead comment to say "fixes" or "closes" rather than "addresses" and this PR will auto-close #77 🎉
Uh oh!
There was an error while loading. Please reload this page.
This pull request fixes#77 "Missing some attributes for
Iframe" by adding theallowand `referrerPolicy attributes.Since this issue was created in 2018, several of the requested attributes have been depreciated, such as
frameborder,scrolling, andallowfullscreen. Theallowfullscreenattribute is considered a legacy attribute and redefined asallow="fullscreen"Note that the
autoplayandloopfunctionality requested in issue# 77 in can be achieved by adding parameters to the url as shown in the example below. Another solution might be to use the html.Video component.Here is an example app to show how to add fullscreen, autoplay and loop to videos:
allowattribute:allow="fullscreen"?autoplay=1&mute=1'to the video id?playlist=e4ti2fCpXMI&loop=1This app is based on this forum post
Thanks for the nice example @nedned !