Index: LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html |
diff --git a/LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html b/LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c128cbf413c5c2ffdd7a7233a5fc73d4db759da8 |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Register and create custom element</title> |
+ <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru"> |
+ <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> |
+</head> |
+<body> |
+ <div id="log"></div> |
+ <script> |
+ var proto = Object.create(HTMLElement.prototype); |
+ proto.createdCallback = function() { |
+ document.querySelector('#log').innerText = 'Created callback was called'; |
+ }; |
+ document.registerElement('x-element', {prototype: proto}); |
+ </script> |
+ <x-element id="x-element"></x-element> |
+</body> |
+</html> |