Re: [WICG/webcomponents] Reference Target: How should we treat invalid reference targets for relations set via Element IDL attributes? (Issue #1089)

@dandclark Yes to all of that, except that I'm a little unclear on this line: 

```js
document.querySelector("#fancy-listbox").shadowRoot.referenceTarget = "";
```

I would have expected an empty string to work like an invalid ID, rather than like an un-set. To un-set, I would have expected we'd need to set `referenceTarget` to `null`, similar to setting an attribute to `null` to remove it.

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

Message ID: <WICG/webcomponents/issues/1089/2603454830@github.com>

Received on Tuesday, 21 January 2025 01:37:51 UTC