[Webkit-unassigned] [Bug 113362] [Custom Elements]: document.register doesn't upgrade nodes in document above the registering script tag

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 26 19:51:35 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=113362


Scott Miles <sjmiles at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #195210|text/html                   |text/plain
          mime type|                            |




--- Comment #2 from Scott Miles <sjmiles at chromium.org>  2013-03-26 19:54:02 PST ---
(From update of attachment 195210)
><!DOCTYPE html>
><!--
>Copyright 2013 The Toolkitchen Authors. All rights reserved.
>Use of this source code is governed by a BSD-style
>license that can be found in the LICENSE file.
>-->
><html>
>  <head>
>    <title>CustomElements Workbench</title>
>    <meta charset="UTF-8">
>  </head>
>  <body
>    <x-foo>XFoo One</x-foo>
>    <script>
>      XFoo = document.webkitRegister('x-foo', {
>        prototype: Object.create(HTMLElement.prototype, {
>          readyCallback: {
>            value: function() {
>              this.textContent += ' -- [upgraded]';
>            }
>          },
>          foo: {
>            value: function() {
>              this.style.cssText = 'border: 1px solid lightblue; padding: 8px;';
>            }
>          }
>        })
>      });
>      window.addEventListener('load', function() {
>        xfoo.foo();
>      });
>    </script>
>    <x-foo id="xfoo">XFoo Two</x-foo>
>  </body>
></html>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list