Skip to content

Commit

Permalink
Docs: Update support comments related to IE
Browse files Browse the repository at this point in the history
All support comments were checked for Edge applicability.
  • Loading branch information
mgol committed Mar 30, 2016
1 parent 622db29 commit 693f1b5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,13 @@ jQuery.extend( {
if ( s.crossDomain == null ) {
urlAnchor = document.createElement( "a" );

// Support: IE8-11+
// IE throws exception if url is malformed, e.g. http://example.com:80x/
// Support: IE <=8 - 11, Edge 12 - 13
// IE throws exception on accessing the href property if url is malformed,
// e.g. http://example.com:80x/
try {
urlAnchor.href = s.url;

// Support: IE8-11+
// Support: IE <=8 - 11 only
// Anchor's host property isn't correctly set when s.url is relative
urlAnchor.href = urlAnchor.href;
s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
Expand Down
4 changes: 2 additions & 2 deletions src/attributes/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ define( [
// Default value for a checkbox should be "on"
support.checkOn = input.value !== "";

// Support: IE<=11+
// Support: IE <=11 only
// Must access selectedIndex to make default options select
support.optSelected = opt.selected;

// Support: IE<=11+
// Support: IE <=11 only
// An input loses its value after becoming a radio
input = document.createElement( "input" );
input.value = "t";
Expand Down
2 changes: 1 addition & 1 deletion src/attributes/val.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jQuery.extend( {
return val != null ?
val :

// Support: IE10-11+
// Support: IE <=10 - 11 only
// option.text throws exceptions (#14686, #14858)
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ jQuery.extend( {
},

// Convert dashed to camelCase; used by the css and data modules
// Support: IE9-11+
// Support: IE <=9 - 11, Edge 12 - 13
// Microsoft forgot to hump their vendor prefix (#9572)
camelCase: function( string ) {
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
Expand Down
2 changes: 1 addition & 1 deletion src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jQuery.fn.extend( {
i = attrs.length;
while ( i-- ) {

// Support: IE11+
// Support: IE 11 only
// The attrs elements can be null (#14894)
if ( attrs[ i ] ) {
name = attrs[ i ].name;
Expand Down
2 changes: 1 addition & 1 deletion src/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function defaultPrefilter( elem, props, opts ) {
// Restrict "overflow" and "display" styles during box animations
if ( isBox && elem.nodeType === 1 ) {

// Support: IE 9 - 11
// Support: IE <=9 - 11, Edge 12 - 13
// Record all 3 overflow attributes because IE does not infer the shorthand
// from identically-valued overflowX and overflowY
opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
Expand Down
2 changes: 1 addition & 1 deletion src/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ define( [
var
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,

// Support: IE 10-11, Edge 10240+
// Support: IE <=10 - 11, Edge 12 - 13
// In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/
rnoInnerhtml = /<script|<style|<link/i,
Expand Down
2 changes: 1 addition & 1 deletion src/offset.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jQuery.fn.extend( {
return;
}

// Support: IE<=11+
// Support: IE <=11 only
// Running getBoundingClientRect on a
// disconnected node in IE throws an error
if ( !elem.getClientRects().length ) {
Expand Down

0 comments on commit 693f1b5

Please sign in to comment.