From f224941fc6b3cfb7807fcec20ff5e6f8585e9c37 Mon Sep 17 00:00:00 2001 From: Tom Konda <tom.konda.dev@gmail.com> Date: Tue, 15 Apr 2025 21:35:43 +0900 Subject: [PATCH 1/2] Remove node cloning and comment for IE <= 7 --- core/misc/drupal.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/misc/drupal.js b/core/misc/drupal.js index 416c4f415a59..c34b5c47ebd8 100644 --- a/core/misc/drupal.js +++ b/core/misc/drupal.js @@ -419,9 +419,7 @@ window.Drupal = { behaviors: {}, locale: {} }; urlParsingNode.setAttribute('href', url); - // IE <= 7 normalizes the URL when assigned to the anchor node similar to - // the other browsers. - return urlParsingNode.cloneNode(false).href; + return urlParsingNode.href; }; /** -- GitLab From 1d0f12120c41820d3793f826a7cbd820d32e7e58 Mon Sep 17 00:00:00 2001 From: Tom Konda <tom.konda.dev@gmail.com> Date: Wed, 16 Apr 2025 21:31:19 +0900 Subject: [PATCH 2/2] Remove a @see comment --- core/misc/drupal.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/misc/drupal.js b/core/misc/drupal.js index c34b5c47ebd8..641c461a802e 100644 --- a/core/misc/drupal.js +++ b/core/misc/drupal.js @@ -404,7 +404,6 @@ window.Drupal = { behaviors: {}, locale: {} }; * * @see https://github.com/angular/angular.js/blob/v1.4.4/src/ng/urlUtils.js * @see https://grack.com/blog/2009/11/17/absolutizing-url-in-javascript - * @see https://github.com/jquery/jquery-ui/blob/1.11.4/ui/tabs.js#L53 */ Drupal.url.toAbsolute = function (url) { const urlParsingNode = document.createElement('a'); -- GitLab