Re: [whatwg/dom] Add reference target to shadow root (PR #1353)

@smaug---- commented on this pull request.



> @@ -6057,6 +6058,7 @@ interface ShadowRoot : DocumentFragment {
   readonly attribute boolean clonable;
   readonly attribute boolean serializable;
   readonly attribute Element host;
+  attribute DOMString? referenceTarget;

Or whether this API should look a bit different so that adding v2 would feel a bit less weird.

Just as an example, not proposing this... what if this was more like 
attribute ReferenceTarget referenceTarget;

and then 
interface ReferenceTarget {
  attribute DOMString? default;
  // v2 would add more attributes
}


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1353#discussion_r1999932186
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1353/review/2692491744@github.com>

Received on Tuesday, 18 March 2025 00:57:12 UTC