From 7cd51e7a804b239e3c98d9eb0fe8bc27e162784d Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 17 Dec 2024 07:47:13 +0000 Subject: [PATCH] Remove quadratic behavior from clone a node Strictly speaking this should be an editorial change, but as it's fairly significant not marking it as such. This improves integration with HTML as well. All the arguments are exported as HTML needs them as well. And they are named parameters now for clarity. Corresponding HTML PR: https://github.com/whatwg/html/pull/10859. Fixes #1219. Closes #1220. --- dom.bs | 163 +++++++++++++++++++++++++++++++++------------------------ 1 file changed, 95 insertions(+), 68 deletions(-) diff --git a/dom.bs b/dom.bs index 4c3fe8ed..44de9d21 100644 --- a/dom.bs +++ b/dom.bs @@ -972,8 +972,8 @@ object, an event listener is a broader concept as can be seen above. which takes an event event, and returns an {{EventTarget}} object. Unless specified otherwise it returns null. -

Nodes, shadow roots, and documents -override the get the parent algorithm. +

Nodes, shadow roots, and documents override the +get the parent algorithm.

Each {{EventTarget}} object can have an associated activation behavior algorithm. The @@ -2218,7 +2218,7 @@ It is represented as follows: