Re: [WICG/webcomponents] Reference Target: what type should the `referenceTarget` attribute be? (Issue #1093)

alice left a comment (WICG/webcomponents#1093)

For an element, the content attribute value is the source of semantic meaning; the IDL attribute is a getter/setter, but the content attribute can be removed, so a distinction exists between an empty string value and a missing value even when the IDL attribute is non-nullable `DOMString`.

For a shadow root, the IDL attribute value is the source of semantic meaning, so if the IDL attribute is non-nullable, there is no such distinction possible. My argument is that I think it would be useful to be able to make the same distinction.

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

Message ID: <WICG/webcomponents/issues/1093/2677272985@github.com>

Received on Monday, 24 February 2025 01:37:45 UTC