@@ -24,20 +24,13 @@ var originUrl = urlResolve(window.location.href, true);
24
24
*
25
25
* Implementation Notes for IE
26
26
* ---------------------------
27
- * IE >= 8 and <= 10 normalizes the URL when assigned to the anchor node similar to the other
27
+ * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other
28
28
* browsers. However, the parsed components will not be set if the URL assigned did not specify
29
29
* them. (e.g. if you assign a.href = "foo", then a.protocol, a.host, etc. will be empty.) We
30
30
* work around that by performing the parsing in a 2nd step by taking a previously normalized
31
31
* URL (e.g. by assigning to a.href) and assigning it a.href again. This correctly populates the
32
32
* properties such as protocol, hostname, port, etc.
33
33
*
34
- * IE7 does not normalize the URL when assigned to an anchor node. (Apparently, it does, if one
35
- * uses the inner HTML approach to assign the URL as part of an HTML snippet -
36
- * http://stackoverflow.com/a/472729) However, setting img[src] does normalize the URL.
37
- * Unfortunately, setting img[src] to something like "javascript:foo" on IE throws an exception.
38
- * Since the primary usage for normalizing URLs is to sanitize such URLs, we can't use that
39
- * method and IE < 8 is unsupported.
40
- *
41
34
* References:
42
35
* http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement
43
36
* http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
@@ -65,7 +58,7 @@ var originUrl = urlResolve(window.location.href, true);
65
58
function urlResolve ( url , base ) {
66
59
var href = url ;
67
60
68
- if ( msie ) {
61
+ if ( msie < 11 ) {
69
62
// Normalize before parse. Refer Implementation Notes on why this is
70
63
// done in two steps on IE.
71
64
urlParsingNode . setAttribute ( "href" , href ) ;
0 commit comments