Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-embed-element/historical.html - WPT Dashboard Interop Dashboard
<!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>