diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/historical.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/historical.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/historical.html b/testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/historical.html new file mode 100644 index 0000000000..9df7280bb6 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/historical.html @@ -0,0 +1,15 @@ +<!doctype html> +<title>Historical embed element features should not be supported</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id=log></div> +<embed id=embed> +<script> +test(function() { + var elm = document.getElementById('embed'); + assert_equals(typeof elm, 'object', 'typeof'); + assert_throws_js(TypeError, function() { + elm(); + }); +}, 'embed legacycaller should not be supported'); +</script> |