Skip to content
16/06/2010 / dimarzionist

HTML 5: IFrame is back

It’s officially back.

In HTML 5 elements do not support attributes such as frameborderscrolling.

The iframe element has three new attributes called sandboxseamless, and srcdoc which allow for sandboxing content, e.g. blog comments.

New sandbox attribute enables a set of extra restrictions on any content hosted by the iframe.

Possible values:

  • allow-same-origin
  • allow-forms
  • allow-scripts

Seamless attribute allows the inline frame to appear as though it is being rendered as part of the containing document. For example, borders and scrollbars will not appear. This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute’s canonical name, with no leading or trailing whitespace (i.e. either seamless or seamless=”seamless”).

Possible values:

  • [Empty string]
  • seamless

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: