Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html

Issue 1211973013: update-w3c-deps import using blink d42488bb63a5ac7fd6befd40a9b90fe85cebcc4a: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add flaky/timeout to TestExpectations Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Register and create custom element</title> 4 <title>Register and create custom element</title>
5 <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro .ru"> 5 <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro .ru">
6 <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru "> 6 <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru ">
7 </head> 7 </head>
8 <body> 8 <body>
9 <div id="log"></div> 9 <div id="log"></div>
10 <script> 10 <script>
11 var proto = Object.create(HTMLElement.prototype); 11 var proto = Object.create(HTMLElement.prototype);
12 proto.createdCallback = function() { 12 proto.createdCallback = function() {
13 document.querySelector('#log').innerText = 'Created callback was cal led'; 13 document.querySelector('#log').textContent = 'Created callback was c alled';
14 }; 14 };
15 document.registerElement('x-element', {prototype: proto}); 15 document.registerElement('x-element', {prototype: proto});
16 </script> 16 </script>
17 <x-element id="x-element"></x-element> 17 <x-element id="x-element"></x-element>
18 </body> 18 </body>
19 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698