Is it safe to add 'allowfullscreen' param automatically for all iframes? -


i embed external content via iframes on wordpress sites via shortcode this:

[iframe src="http://path.to/page"] 

and other params (width, height, frameborder, etc) added automatically (while content parsing , executing such shortcodes) because there no need specify them every time.

some of iframe embeds videos youtube or vimeo needs 'allowfullscreen' param iframe code.

so decided add 'allowfullscreen' automatically every iframe on site (even not youtube or vimeo) easier adding content.

is safe add 'allowfullscreen' param automatically iframes? there possible problems 'allowfullscreen' in iframes on site?

the allowfullscreen doesn't seem pass w3c validator check, youtube; get:

line 129, column 131: "allowfullscreen" not member of group specified attribute …bed/uiqfkwurspm?feature=oembed" frameborder="0" allowfullscreen></iframe><br /> 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -