Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enqueue custom element reactions appropriately during upgrades
As pointed out in #1297 (comment), the setup introduced in #1309 allows custom element reactions to happen during custom element constructors. This is unavoidable, but the spec did not account for its consequences, leading to cases where a custom element reaction would be called twice for the same attribute (or the same element being connected). By moving these steps to the top of the algorithm, we ensure that reactions are only enqueued for the state of the world before the constructor runs, and that any reactions caused by actions inside the constructor are then taken care of by the usual mechanisms. Closes #1297 again.
- Loading branch information