Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /custom-elements/revamped-scoped-registry/polymer-polyfill-regression.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
test(() => {
document.createElement('div').attachShadow({mode: 'closed', customElements: { }});
}, 'attachShadow should not throw an exception when an arbitrary type is passed to customElements');
test(() => {
document.createElement('div').attachShadow({mode: 'closed'}).customElements = { };
}, 'The setter of customElements IDL attribute should not throw an exception when assigned of an arbitrary type');
</script>
</body>
</html>