Re: [WICG/webcomponents] Proposal: Custom attributes for all elements, enhancements for more complex use cases (Issue #1029)

> I'm assuming that the dashes requirement is to avoid clashes with 'official' attributes. This doesn't work, because with reflection, a `read-only` attribute still maps to a `readOnly` property, so you still have the namespace clash.

I agree and I'm not sure custom attributes should be adding properties to elements. Custom Elements should be free to add the property which can look up the custom attribute node, and the custom attribute should be able to internalise its own reflection rules and expose them (perhaps via a `.value` getter or something) but I think the wiring should still be manual.

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

Message ID: <WICG/webcomponents/issues/1029/2455125948@github.com>

Received on Monday, 4 November 2024 16:13:31 UTC