2 <script src=
"../resources/js-test.js"></script>
5 description('Tests basic web-exposure of Custom Elements');
7 function evalAndLogValue(s
) {
12 evalAndLogValue('Document.prototype.hasOwnProperty("registerElement")');
13 evalAndLogValue('typeof Document.prototype.registerElement');
14 evalAndLogValue('document.createElement("x-a") instanceof HTMLUnknownElement');
16 var div
= document
.createElement('div');
17 div
.innerHTML
= '<div is="x-b">';
18 document
.body
.appendChild(div
);
19 evalAndLogValue('document.querySelector(":unresolved")');
22 var span
= document
.createElement('span', 'type-extension');
23 evalAndLogValue('span.getAttribute("is")');
25 successfullyParsed
= true;