Chrome Version: 64 Stable, 66 Canary
OS: All but iOS
What steps will reproduce the problem?
(1) Load the following HTML:
<body>
<script>
class XFoo extends HTMLElement {}
let ce1 = document.createElement('x-foo');
let ce2 = document.createElement('x-foo', {});
customElements.define('x-foo', XFoo);
document.body.appendChild(ce1);
document.body.appendChild(ce2);
alert(ce1.constructor.name + ', ' + ce2.constructor.name);
</script>
</body>
What is the expected result?
An alert dialog with "XFoo, XFoo" is shown.
What happens instead?
An alert dialog with "XFoo, HTMLElement" is shown.
Please use labels and text to provide additional information.
Firefox and Safari work correctly.
Comment 1 by bugdroid1@chromium.org
, Feb 9 2018