Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / srcdoc / srcdoc-urls.html
blob5d699557a9f45ba5a4c4c022d99546f930c9b458
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
4 </script>
5 A srcdoc document should inherit its document.baseURI from its parent (but not
6 its document.URI).
7 <base href="http://example.com/base/URI/of/parent.html">
8 <iframe srcdoc="
9 <script>
10 alert('document.URL = ' + document.URL);
11 alert('document.baseURI = ' + document.baseURI);
12 </script>
13 <base href='http://example.org/base/URI/from/child/base/tag.html'>
14 <script>
15 alert('After <base> element:');
16 alert('document.baseURI = ' + document.baseURI);
17 </script>
18 "></iframe>