Index: chrome/common/extensions/docs/templates/articles/app_external.html |
=================================================================== |
--- chrome/common/extensions/docs/templates/articles/app_external.html (revision 159603) |
+++ chrome/common/extensions/docs/templates/articles/app_external.html (working copy) |
@@ -35,7 +35,7 @@ |
and then serve them via <code>blob:</code> URLs. |
</p> |
-<h3>Manifest requirement</h3> |
+<h3 id="manifest">Manifest requirement</h3> |
<p> |
To be able to do cross-origin XMLHttpRequests, you'll need to add a permission |
@@ -49,7 +49,7 @@ |
] |
</pre> |
-<h3>Cross-origin XMLHttpRequest</h3> |
+<h3 id="cross-origin">Cross-origin XMLHttpRequest</h3> |
<p> |
Fetch the remote URL into the app and serve its contents as a <code>blob:</code> |
@@ -91,7 +91,7 @@ |
there is no way for the web content to access any of the app's data. |
</p> |
-<h3>Add browser element</h3> |
+<h3 id="browser_element">Add browser element</h3> |
<p> |
Your <code>browser</code> element must include the URL to the source content |
@@ -100,7 +100,7 @@ |
<pre><browser src="http://news.google.com/" width="640" height="480"></browser></pre> |
-<h3>Update properties</h3> |
+<h3 id="properties">Update properties</h3> |
<p> |
To dynamically change the <code>src</code>, <code>width</code> and |
@@ -137,7 +137,7 @@ |
but you won't be able to use the cool new stuff. |
</p> |
-<h3>Use inline scripts in sandbox</h3> |
+<h3 id="inline_scripts">Use inline scripts in sandbox</h3> |
<p> |
Here's a sample sandboxed page |
@@ -156,7 +156,7 @@ |
</html> |
</pre> |
-<h3>Include sandbox in manifest</h3> |
+<h3 id="include_sandbox">Include sandbox in manifest</h3> |
<p> |
You need to include the <code>sandbox</code> field in the manifest |
@@ -169,7 +169,7 @@ |
} |
</pre> |
-<h3>Opening a sandboxed page in a window</h3> |
+<h3 id="opening_sandbox">Opening a sandboxed page in a window</h3> |
<p> |
Just like any other app pages, |
@@ -197,7 +197,7 @@ |
}); |
</pre> |
-<h3>Embedding a sandboxed page in an app page</h3> |
+<h3 id="embedding_sandbox">Embedding a sandboxed page in an app page</h3> |
<p>Sandboxed pages can also be embedded within another app page |
using an <code>iframe</code>:</p> |
@@ -224,7 +224,7 @@ |
and listen for messages on the receiving page/window. |
</p> |
-<h3>Post message</h3> |
+<h3 id="post_message">Post message</h3> |
<p> |
You can use <code>postMessage</code> to communicate |
@@ -264,7 +264,7 @@ |
see <a href="https://developer.mozilla.org/en/DOM/window.postMessage">window.postMessage</a>. |
</p> |
-<h3>Listen for message</h3> |
+<h3 id="listen_message">Listen for message</h3> |
<p> |
Here's a sample message receiver |
@@ -279,4 +279,4 @@ |
window.addEventListener('message', messageHandler); |
</pre> |
-<p class="backtotop"><a href="#top">Back to top</a></p> |
+<p class="backtotop"><a href="#top">Back to top</a></p> |