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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 3 01:05:49 PDT 2018


--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Frédéric Wang (:fredw) from comment #7)
> (In reply to Ryosuke Niwa from comment #6)
> > Huh, there is a bunch of bugs here but one of the primary issue here is that
> > innerHTML is synchronously constructing custom elements. I don't think we're
> > supposed to do that.
> I think when setting innerHTML, the HTML fragment parsing algorithm is used
> so we should create an HTMLElement and enqueue an upgrade for later per
> https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-
> the-token... This is what the patch on bug 183586 is supposed to do (see
> also bug 188190 for preliminary work).

That patch fixes this problem at the right place. I'll post a patch to fix it properly elsewhere.

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/20180803/3db10daf/attachment-0001.html>

More information about the webkit-unassigned mailing list