Re: [WICG/webcomponents] Reference Target naming (Issue #1087)

alice left a comment (WICG/webcomponents#1087)

> I don't think we should let what's implemented as a prototype drive the standardization discussion. That seems quite wrong.

Was someone suggesting that we should?

> I agree that it should be limited to incoming ID or element references, but I don't think the name needs to reflect that explicitly.

My concern is that if it's not explicit about what is being delegated, it it sounds like a catch-all, which we all agree it isn't and shouldn't be. We would at the very least need to be explicit with any related attributes, which could only add to the confusion.

For example:

```html
<template shadowrootmode="open"
          shadowrootdelegatesfocus
          shadowrootdelegatesto="input"
          shadowrootdelegatesattributes="input"> 
```

To me, it seems potentially very confusing: does `shadowrootdelegatesto` refer to focus somehow, since `shadowrootdelegatesfocus` doesn't take an ID? Does it refer to everything (for some unknown value of everything) _other_ than focus and attributes? Is `shadowrootdelegatesattributes` redundant, since it refers to the same element?

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

Message ID: <WICG/webcomponents/issues/1087/2677167922@github.com>

Received on Sunday, 23 February 2025 23:02:28 UTC