diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03.html b/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03.html new file mode 100644 index 000000000..c07dd42dc --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<title>moving modified IFRAME in document (original page from server, DOM modification)</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<link rel="help" href="https://html.spec.whatwg.org/#iframe-load-event-steps"> +<iframe src="support/blank.htm"></iframe> +<div id="target"></div> +<script> +onload = function() { + var ifr = document.getElementsByTagName('iframe')[0]; + ifr.contentDocument.body.appendChild(ifr.contentDocument.createElement('p')).textContent = 'Modified document'; + setTimeout(function() { + ifr.onload = function() { + assert_equals(ifr.contentDocument.body.textContent.indexOf('Modified'), -1); + done(); + }; + document.getElementById('target').appendChild(ifr); + }, 100); +} +</script>
\ No newline at end of file |