mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Test adopting images into documents with different base URLs.
This commit is contained in:
parent
dc5335a21e
commit
330e222fe8
2 changed files with 30 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue