Re: [WICG/webcomponents] RfC: API design for aria delegation mechanism (#917)

I believe that is already possible using code such as the following (referring to the example in the OP):

```js
class MyInput extends HTMLElement {
  static observedAttributes = ["aria-label"];
  #input;
  
  constructor() {
    super();
    this.#input = document.createElement('input');
    this.shadowRoot.appendChild(this.#input);
    
    this.#input.ariaLabel = this.ariaLabel;
  }
  
  attributeChangedCallback(name, newValue, oldValue) {
    if (name === "aria-label") {
      this.#input.ariaLabel = this.ariaLabel;
    }
  }
}
```

Can you spot anything that this proposal would enable that code like the above would not? It would be really helpful to understand the scope of the proposal to get a clear answer.

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

Message ID: <WICG/webcomponents/issues/917/1013554777@github.com>

Received on Saturday, 15 January 2022 00:13:40 UTC