Re: [w3c/webcomponents] Is there a way to detect if a custom element was constructed during parsing? (#789)

> Hey Ryo, the use case is presented, in the above 2nd fiddle.

Wanting to detect when a custom element is created by a fragment parsing algorithm is **NOT** a use case. Wanting to have a guarantee that each child has been upgraded before accessing it is **NOT** a use case. A use case is a specific user scenario.

> It's not clear how to detect or work with children in that case, in order to run logic on any/all upgraded children in a guaranteed way like we can with initial-payload parsing in the the 1st fiddle.

Like I've stated dozens of times, with the current custom elements API, you'd need to have a child talk to its parent, not a parent finding the right kind of children.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/789#issuecomment-474595292

Received on Tuesday, 19 March 2019 21:40:31 UTC