Re: [WICG/webcomponents] Alternative to customized built-in - Element custom enhancements (Issue #1000)

4.  It was argued that we *could* leave it up to the code in the callback to decide if it wants to take action, based on what type of element is being enhanced.  I don't *think* this was being advocated as the correct solution, just a thought experiment.  I think it would incur a bit of a performance hit to unnecessarily instantiate and attach the class, and go through that entire handshake, if we can filter this out declaratively.  I agree the class itself should have a say-so in what elements it doesn't want have any interest in enhancing.  I proposed a static property (maybe in addition to the registration, both have to opt in).

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

Message ID: <WICG/webcomponents/issues/1000/1717738074@github.com>

Received on Wednesday, 13 September 2023 14:24:51 UTC