Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Adding checks for interesting `iframe` attributes. #652

Merged
merged 1 commit into from Aug 11, 2012

Conversation

Projects
None yet
3 participants
Contributor

mikewest commented Aug 10, 2012

Good morning, lovely Modernizr folks. This patch adds support for a few interesting iframe attributes:

  • @sandbox enables granular restriction of the permissions with which
    framed content is allowed to run.
  • @seamless renders iframe elements as though they were part of the
    containing document. CSS bleeds through, and links open in the parent
    window, for instance.
  • @srcdoc provides the content that the frame ought to display.

All three are implemented in WebKit, and are specified in the "The iframe
element" section of the WHATWG HTML living standard
.

Thanks!

Adding checks for interesting `iframe` attributes.
* @sandbox enables granular restriction of the permissions with which
  framed content is allowed to run.

* @seamless renders `iframe` elements as though they were part of the
  containing document. CSS bleeds through, and links open in the parent
  window, for instance.

* @srcdoc provides the content that the frame ought to display.

All three are implemented in WebKit, and are specified in the ["The iframe
element" section of the WHATWG HTML living standard][1].

[1]: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html

ryanseddon added a commit that referenced this pull request Aug 11, 2012

Merge pull request #652 from mikewest/sandbox
Detects for sandbox, seamless and srcdoc iframe attributes, closes #652

@ryanseddon ryanseddon merged commit 58221c7 into Modernizr:master Aug 11, 2012

Owner

ryanseddon commented Aug 11, 2012

Thanks @mikewest good stuff.

Contributor

mikewest commented Aug 11, 2012

Thanks for merging so quickly. :)

Owner

paulirish commented Aug 11, 2012

Lookin sharp! thank you sir

patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this pull request Feb 22, 2015

Merge pull request #652 from mikewest/sandbox
Detects for sandbox, seamless and srcdoc iframe attributes, closes #652
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment