Re: [WICG/webcomponents] [idea] New Lifecycle Callback: `willConnectCallback` for initializing attributes (#919)

I think the proper solution here is to eliminate all use cases for an element setting attributes on itself _not_ in response to property changes or user input. Just like with built-in elements, a custom element shouldn't spontaneously sprout attributes.

This means we need ElementInternals to handle focus, custom CSS state, and default ARIA roles and delegation. I believe all of those are in progress.

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

Received on Sunday, 4 April 2021 19:39:22 UTC