- From: Alice <notifications@github.com>
- Date: Wed, 04 Dec 2024 19:30:24 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 5 December 2024 03:30:27 UTC
The explainer [proposes](https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md#javascript-attributes-that-reflect-element-objects) that IDL attribute _getters_ not return the `referenceTarget` element, and I strongly agree there.
However, this leaves open the question of what should happen with IDL attribute _setters_.
```html
<input id="input">
<fancy-listbox id="listbox">
<template
shadowrootmode="open"
shadowrootreferencetarget="real-listbox"
>
<div id="real-listbox" role="listbox">
<div id="option-1" role="option">Option 1</div>
<div id="option-2" role="option">Option 2</div>
</div>
</template>
</fancy-listbox>
```
```js
input.ariaControlsElements = [ listbox ];
```
In this case, should the `aria-controls` relationship be with the `<fancy-listbox>`, or the `<div role="listbox">`?
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1089
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/1089@github.com>
Received on Thursday, 5 December 2024 03:30:27 UTC