DescriptionUpgrade custom elements when inserting a node
This patch tries to upgrade[1] custom elements when inserting a node[2].
With this change, setting to innerHTML/outerHTML enqueues upgrade
reactions if the definition is not null, but then
Element::insertedInto() enqueues upgrade reactions again. Added the
guard in CustomElementDefinition::upgrade() for such cases.
[1] https://html.spec.whatwg.org/multipage/scripting.html#concept-try-upgrade
[2] https://dom.spec.whatwg.org/#concept-node-insert
BUG=594918
Committed: https://crrev.com/efb4249e4e385284b1f320e9642a50fb47f2217e
Cr-Commit-Position: refs/heads/master@{#400401}
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : rebase #Patch Set 4 : Minor editorial #
Total comments: 5
Patch Set 5 : dominicc nits #
Messages
Total messages: 25 (13 generated)
|