Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webmessaging/without-ports/003.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>resolving 'example.org'</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
assert_throws_dom('SYNTAX_ERR', function() {
postMessage('', 'example.org');
}, 'targetOrigin is not an absolute url');
});
</script>