summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/drupal.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/drupal.js')
-rw-r--r--core/misc/drupal.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/misc/drupal.js b/core/misc/drupal.js
index 416c4f415a5..641c461a802 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');
@@ -419,9 +418,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;
};
/**