- From: Edgar Chen <notifications@github.com>
- Date: Tue, 11 Sep 2018 00:42:33 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 11 September 2018 07:42:54 UTC
See https://html.spec.whatwg.org/multipage/parsing.html#insert-a-foreign-element. The spec doesn't mention a connected callback should be enqueued for the inserted node (Or actually it miss the link referencing to the right place). But it seems test cases has different expectation: 1. https://github.com/web-platform-tests/wpt/blob/7e6d78de85f3fe71cc7c46fbaed17a8cd76f7d44/custom-elements/parser/parser-sets-attributes-and-children.html#L75-L80 expects the node has no child when the connected callback is called, since the reaction will be excuted after the insertion. This means it expects connected callback should be enqueued for the insertion. 2. But https://github.com/web-platform-tests/wpt/blob/7e6d78de85f3fe71cc7c46fbaed17a8cd76f7d44/custom-elements/connected-callbacks-html-fragment-parsing.html#L26-L28 expects the node has children appended when the connected callback is called. This means it expects connected callback should be enqueued for the insertion. Filed this issue to clarify whether a connected callback should be enqueued in https://html.spec.whatwg.org/multipage/parsing.html#insert-a-foreign-element. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/694
Received on Tuesday, 11 September 2018 07:42:54 UTC