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.

I am coming around to see it this way too. It's a potentially breaking change either way (though only for sites that opt-in to using reference target), but returning the host provides more useful information, especially since https://github.com/WICG/webcomponents/issues/1071 seems to have reached a conclusion that an invalid reference target should return null. So checking if `form`/`list` are null would let devs determine whether the reference target points to a valid target or not.

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

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

Received on Wednesday, 29 January 2025 23:50:08 UTC