No need Node.cloneNode() in Drupal.url.toAbsolute()

Created on 15 April 2025, about 2 months ago

Problem/Motivation

In Drupal.url.toAbsolute(), code comment is written that uses urlParsingNode.cloneNode() to support IE <= 7.
This node cloning seems not to need for current browsers.

<!--break-->

Proposed resolution

Change code like below and remove code comment about URL normalize for IE <= 7.

Before:

return urlParsingNode.cloneNode(false).href;

After:

return urlParsingNode.href;

Remaining tasks

TBD

User interface changes

No.

API changes

No.

Data model changes

No.

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

javascript

Created by

πŸ‡―πŸ‡΅Japan tom konda Kanagawa, Japan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024