Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test adopting images into documents with different base URLs.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...atform-tests/html/semantics/embedded-content/the-img-element/document-adopt-base-url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |