Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
24dcc8dd
Verified
Commit
24dcc8dd
authored
4 weeks ago
by
Théodore Biadala
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3519266
by tom konda: Remove IE7 support from Drupal.url.toAbsolute()
parent
f4e4dd42
No related branches found
No related tags found
1 merge request
!5423
Draft: Resolve #3329907 "Test2"
Pipeline
#499037
passed with warnings
4 weeks ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#499045
Pipeline: drupal
#499042
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/misc/drupal.js
+1
-4
1 addition, 4 deletions
core/misc/drupal.js
with
1 addition
and
4 deletions
core/misc/drupal.js
+
1
−
4
View file @
24dcc8dd
...
@@ -404,7 +404,6 @@ window.Drupal = { behaviors: {}, locale: {} };
...
@@ -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://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://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
)
{
Drupal
.
url
.
toAbsolute
=
function
(
url
)
{
const
urlParsingNode
=
document
.
createElement
(
'
a
'
);
const
urlParsingNode
=
document
.
createElement
(
'
a
'
);
...
@@ -419,9 +418,7 @@ window.Drupal = { behaviors: {}, locale: {} };
...
@@ -419,9 +418,7 @@ window.Drupal = { behaviors: {}, locale: {} };
urlParsingNode
.
setAttribute
(
'
href
'
,
url
);
urlParsingNode
.
setAttribute
(
'
href
'
,
url
);
// IE <= 7 normalizes the URL when assigned to the anchor node similar to
return
urlParsingNode
.
href
;
// the other browsers.
return
urlParsingNode
.
cloneNode
(
false
).
href
;
};
};
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment