Hypothesis embed code demo.

This page includes a customized Hypothesis client with support for including "embed codes" (HTML containing <iframe> tags) in annotations.

Try it out

  1. Go to a CNN video page.
  2. Click on the "</>" icon to show the embed code for the video.
  3. Copy and paste the embed code content into a new annotation on this page.

How it works

The "src" attribute is extracted from iframe tags in the body of the annotation and a new sandboxed iframe is created. The use of a sandbox means that the iframe's capabilities are limited. For example, the iframe will not be able to navigate the parent window, show popups or do a number of other things that would be annoying to the user.