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

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -