Re: [WICG/webcomponents] Reference Target: Should the `form` and `list` JavaScript attributes return the host element? (Issue #1072)

> I feel like returning null closes the door on having the potential of making it work.

On reflection, I think I agree with @kyubisation and https://github.com/WICG/webcomponents/pull/1066#discussion_r1717606135. 

Returning the host is preferable, if possible, because it leaves the platform more open to future improvement. 

If it returns `null`, then we must (likely) forever accept a new rule that you cannot use `.form` to know if a form will be submitted when you click a button.

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

Message ID: <WICG/webcomponents/issues/1072/2613034371@github.com>

Received on Friday, 24 January 2025 17:22:39 UTC