Re: [WICG/webcomponents] Reference Target: Rethinking attribute reflection for invalid reference targets (Issue #1114)

annevk left a comment (WICG/webcomponents#1114)

I think developer tools should expose "validity" (I think this term is rather confusing, but I can't immediately think of something better).

I wonder to what extent it's useful for web developers in API form. And even then we couldn't tell them much due to encapsulation. Arguably telling them anything violates encapsulation to some extent.

Making the getter more often return the value you passed to the setter seems like a win to me as well.

The caveat to all this is that generally HTML getters do return the computed value where possible. But I think in this case we can't usefully return the computed value due to encapsulation and custom element initialization being dynamic. So I think that argues for returning the maybe shadow host always.

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

Message ID: <WICG/webcomponents/issues/1114/3390861052@github.com>

Received on Friday, 10 October 2025 15:47:00 UTC