Test adopting images into documents with different base URLs.

This commit is contained in:
Josh Matthews 2017-02-28 10:50:59 -05:00
parent dc5335a21e
commit 330e222fe8
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Document base URL adopted img test</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element" />
<link rel="match" href="document-base-url-ref.html">
<base href="resources/" />
<iframe></iframe>
<script>
var iframe = document.querySelector('iframe');
var i = iframe.contentDocument.createElement('img');
i.src = "cat.jpg";
document.body.appendChild(i);
iframe.remove();
</script>