Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webexposed / custom-elements.html
blob6547baa5e843700332b082e65a3683aea993e551
1 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script>
3 <body>
4 <script>
5 description('Tests basic web-exposure of Custom Elements');
7 function evalAndLogValue(s) {
8 debug(evalAndLog(s));
9 debug('');
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")');
20 div.remove();
22 var span = document.createElement('span', 'type-extension');
23 evalAndLogValue('span.getAttribute("is")');
25 successfullyParsed = true;
26 </script>