サンドボックス化されているがallow-scriptsを使用するiframe内でjqueryモバイルサイトを実行したいと思います。しかし、それは何も表示しません。
<!Doctype html>
<html>
<head>
<title>#1 JS Scope</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<!-- Libs -->
<script src="../../lib/jquery-1.8.2/jquery-1.8.2.js"></script>
<script src="../../lib/jquery-mobile-1.2.0/jquery.mobile-1.2.0.js"></script>
<link href="../../lib/jquery-mobile-1.2.0/jquery.mobile.structure-1.2.0.css" rel="stylesheet">
<link href="../../lib/jquery-mobile-1.2.0/jquery.mobile-1.2.0.css" rel="stylesheet">
</head>
<body>
<!-- Page -->
<div data-role="page" id="home">
<!-- Header -->
<div data-role="header" data-theme="a">
<h1>Top</h1>
</div>
<!-- Content -->
<div data-role="content" data-theme="c" id="frame">
<iframe src="http://jquerymobile.com/demos/1.2.0/" sandbox="allow-scripts" width="926" height="974"></iframe>
</div>
</div>
</body>
</html>
完成したjqueryモバイルアプリがラッピングページのDOMにアクセスできないようにするため、サンドボックス化されています。したがって、jquerymobileのjavascriptの実行を許可するようにallow-scriptのみが設定されます。
しかし、iframeは白しか表示せず、何が間違っているのか本当にわかりません。jqueryは、何かを表示するために親DOMにアクセスする必要がないためです。