Re: [whatwg/dom] Allow for customisation of the "get the parent" algorithm (PR #1230)

@keithamus commented on this pull request.



> +</ol>
+
+<p>To <dfn export for=Event id=concept-eventtargetinternals-set-parent>set the parent</dfn> given
+an {{EventTargetInternals}} <var>internals</var> and {{EventTarget}} <var>theParent</var>:
+
+<ol>
+  <li>If <var>theParent</var> is equal to <var>internals</var>' <a
+  for=EventTargetInternals>eventTarget</a> then <a>throw</a> a
+   "{{HierarchyRequestError!!exception}}" {{DOMException}}.
+
+  <li>If <var>theParent</var>'s <a for=EventTarget>attached internals</a>
+  {{EventTargetInternals/parent}} is equal to <var>internals</var>' <a
+  for=EventTargetInternals>eventTarget</a> then<a>throw</a> a "{{HierarchyRequestError!!exception}}"
+  {{DOMException}}.
+
+  <li>Set <var>internal</var>'s <a for=EventTargetInternals>eventTarget</a> <a>get the parent</a>

I couldn't find precedent for setting an algorithm so this is just made up, hopefully it suffices?

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

Message ID: <whatwg/dom/pull/1230/review/1670596342@github.com>

Received on Wednesday, 11 October 2023 09:26:55 UTC