Re: [WICG/webcomponents] Reference Target "phase 2": seeking feedback and use cases (Issue #1111)

woody-li left a comment (WICG/webcomponents#1111)

I've defined a form-field element, provided field label and validation info.
DOM example:
```HTML
<x-form-field id="user-name" label="User name:">
  #shadowDom
    <label>User name</label/>
    <slot />
    <section id="message">xxx</section>

  #lightDom
    <input aria-labelledby="user-name" aria-errormessage="user-name" />
</x-form-field>
```

Expected: the `labelledby` reference to the label element, and the `errormessage` reference to the message element.

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

Message ID: <WICG/webcomponents/issues/1111/5163087489@github.com>

Received on Monday, 3 August 2026 06:33:47 UTC