[Webkit-unassigned] [Bug 184307] New: CustomElements are not always properly upgraded when created via innerHTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 4 09:16:15 PDT 2018


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

            Bug ID: 184307
           Summary: CustomElements are not always properly upgraded when
                    created via innerHTML
           Product: WebKit
           Version: Safari 11
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jairam.ramanathan at oracle.com

Created attachment 337178

  --> https://bugs.webkit.org/attachment.cgi?id=337178&action=review

Test page to reproduce issue

We've seen intermittent failures where custom elements fail to be upgraded (i.e. end up as HTMLUnknownElement rather than the expected class) when they're being created via an innerHTML call.  The attached test case should demonstrate the issue: it creates an innerHTML string consistent of 1000 <my-component></my-component> instances and then sets it in the DOM 1000 times.  In my runs, I'm seeing the connected callback getting invoked in an invalid state hundreds of times for each time through this loop.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180404/31ba62ea/attachment-0002.html>


More information about the webkit-unassigned mailing list