commit | efb4249e4e385284b1f320e9642a50fb47f2217e | [log] [tgz] |
---|---|---|
author | kojii <kojii@chromium.org> | Fri Jun 17 08:50:04 2016 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jun 17 08:51:33 2016 |
tree | 1e256f6cfb3a7be15b4bf1f674aa397a42ef67f1 | |
parent | 20d56e4845354062512ee3655e7cf2501400dc7d [diff] |
Upgrade 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 Review-Url: https://codereview.chromium.org/2067853002 Cr-Commit-Position: refs/heads/master@{#400401}