Chrome Version: ToT
OS: All but iOS
What steps will reproduce the problem?
(1) Open the following HTML document:
<script>
class MyElement extends HTMLDivElement {}
customElements.define('my-div', MyElement, {extends:'div'});
var mydiv = document.createElement('div', {is:'my-div'});
alert(mydiv.cloneNode() instanceof MyElement);
</script>
What is the expected result?
An alert dialog with "true" is opened.
What happens instead?
An alert dialog with "false" is opened.
Please use labels and text to provide additional information.
Element::CloneElementWithoutAttributesAndChildren() should take care of customized built-in elements.
Firefox works well.
Comment 1 by tkent@chromium.org
, Feb 2 2018