summaryrefslogtreecommitdiffstats
path: root/dom/html/test/imports/file_element_upgrade.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/test/imports/file_element_upgrade.html')
-rw-r--r--dom/html/test/imports/file_element_upgrade.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/html/test/imports/file_element_upgrade.html b/dom/html/test/imports/file_element_upgrade.html
new file mode 100644
index 000000000..b41bd0a42
--- /dev/null
+++ b/dom/html/test/imports/file_element_upgrade.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+</head>
+<body>
+ <x-foo></x-foo>
+ <script>
+ var prototype = Object.create(HTMLElement.prototype);
+ prototype.createdCallback = function() {
+ createdCallbackCalled = true;
+ }
+ document.registerElement('x-foo', {prototype: prototype});
+ </script>
+</body>
+</html>