Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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>