2 <script src=
"../../../resources/js-test.js"></script>
5 description('Tests that an element is not upgraded after being destroyed');
7 // Create an upgrade candidate. Don't wrap it.
8 var div
= document
.createElement('div');
9 div
.innerHTML
= '<span is="x-a"></span>';
11 // Delete the upgrade candidate.
14 // Provide a definition that would have matched.
15 var proto
= Object
.create(HTMLSpanElement
.prototype);
16 proto
.createdCallback = function () {
17 testFailed('unreachable');
19 document
.registerElement('x-a', {prototype: proto
});
21 testPassed('Did not crash.');
23 successfullyParsed
= true;