summaryrefslogtreecommitdiffstats
path: root/dom/html/test/imports/file_element_upgrade.html
blob: b41bd0a4278ad774b0d155eb711d9a81d7228379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>