Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Test URL setters correctly encode value
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jan 7, 2015
1 parent cf5d82e commit 8f73d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion url.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
if (!scope.forceJURL) {
try {
var u = new URL('b', 'http://a');
hasWorkingUrl = u.href === 'http://a/b';
u.pathname = 'c%20d';
hasWorkingUrl = u.href === 'http://a/c%20d';
} catch(e) {}
}

Expand Down

0 comments on commit 8f73d3f

Please sign in to comment.