docs: remove IE10 references from comments in the code (#39090)
PR Close #39090
This commit is contained in:
parent
a051d97429
commit
8fd25d9614
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@ export function createCustomEvent(doc: Document, name: string, detail: any): Cus
|
|||
const bubbles = false;
|
||||
const cancelable = false;
|
||||
|
||||
// On IE9-11, `CustomEvent` is not a constructor.
|
||||
// On IE11, `CustomEvent` is not a constructor.
|
||||
if (typeof CustomEvent !== 'function') {
|
||||
const event = doc.createEvent('CustomEvent');
|
||||
event.initCustomEvent(name, bubbles, cancelable, detail);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ import '@angular/localize/init';
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
/** IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/**
|
||||
|
|
|
@ -106,7 +106,7 @@ describe('CssKeyframesDriver tests', () => {
|
|||
|
||||
it('should animate until the `animationend` method is emitted, but stil retain the <style> method and the element animation details',
|
||||
fakeAsync(() => {
|
||||
// IE10 and IE11 cannot create an instanceof AnimationEvent
|
||||
// IE11 cannot create an instanceof AnimationEvent
|
||||
if (!supportsAnimationEventCreation()) return;
|
||||
|
||||
const elm = createElement();
|
||||
|
|
|
@ -195,7 +195,7 @@ const EMPTY_FN = () => {};
|
|||
});
|
||||
|
||||
it('should fire the onDone method when the matching animationend event is emitted', () => {
|
||||
// IE10 and IE11 cannot create an instanceof AnimationEvent
|
||||
// IE11 cannot create an instanceof AnimationEvent
|
||||
if (!supportsAnimationEventCreation()) return;
|
||||
|
||||
const element = createElement();
|
||||
|
|
|
@ -667,7 +667,7 @@ function getDateFormatter(format: string): DateFormatter|null {
|
|||
}
|
||||
|
||||
function timezoneToOffset(timezone: string, fallback: number): number {
|
||||
// Support: IE 9-11 only, Edge 13-15+
|
||||
// Support: IE 11 only, Edge 13-15+
|
||||
// IE/Edge do not "understand" colon (`:`) in timezone
|
||||
timezone = timezone.replace(/:/g, '');
|
||||
const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
|
||||
|
|
|
@ -689,7 +689,7 @@ export class $locationShim {
|
|||
*
|
||||
* This method is supported only in HTML5 mode and only in browsers supporting
|
||||
* the HTML5 History API methods such as `pushState` and `replaceState`. If you need to support
|
||||
* older browsers (like IE9 or Android < 4.0), don't use this method.
|
||||
* older browsers (like Android < 4.0), don't use this method.
|
||||
*
|
||||
*/
|
||||
state(): unknown;
|
||||
|
|
|
@ -88,7 +88,7 @@ class InertDocumentHelper implements InertBodyHelper {
|
|||
const inertBody = this.inertDocument.createElement('body');
|
||||
inertBody.innerHTML = trustedHTMLFromString(html) as string;
|
||||
|
||||
// Support: IE 9-11 only
|
||||
// Support: IE 11 only
|
||||
// strip custom-namespaced attributes on IE<=11
|
||||
if ((this.defaultDoc as any).documentMode) {
|
||||
this.stripCustomNsAttrs(inertBody);
|
||||
|
@ -98,7 +98,7 @@ class InertDocumentHelper implements InertBodyHelper {
|
|||
}
|
||||
|
||||
/**
|
||||
* When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
|
||||
* When IE11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
|
||||
* attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.
|
||||
* 'ns1:xlink:foo').
|
||||
*
|
||||
|
|
|
@ -59,7 +59,7 @@ export function createCustomEvent(doc: Document, name: string, detail: any): Cus
|
|||
const bubbles = false;
|
||||
const cancelable = false;
|
||||
|
||||
// On IE9-11, `CustomEvent` is not a constructor.
|
||||
// On IE11, `CustomEvent` is not a constructor.
|
||||
if (typeof CustomEvent !== 'function') {
|
||||
const event = doc.createEvent('CustomEvent');
|
||||
event.initCustomEvent(name, bubbles, cancelable, detail);
|
||||
|
|
|
@ -45,7 +45,7 @@ export class AngularProfiler {
|
|||
timeChangeDetection(config: any): ChangeDetectionPerfRecord {
|
||||
const record = config && config['record'];
|
||||
const profileName = 'Change Detection';
|
||||
// Profiler is not available in Android browsers, nor in IE 9 without dev tools opened
|
||||
// Profiler is not available in Android browsers without dev tools opened
|
||||
const isProfilerAvailable = window.console.profile != null;
|
||||
if (record && isProfilerAvailable) {
|
||||
window.console.profile(profileName);
|
||||
|
|
|
@ -301,7 +301,7 @@ describe('bootstrap', () => {
|
|||
await router.navigateByUrl('/aa');
|
||||
window.scrollTo(0, 5000);
|
||||
|
||||
// IE 9/10/11 use non-standard pageYOffset instead of scrollY
|
||||
// IE 11 uses non-standard pageYOffset instead of scrollY
|
||||
const getScrollY = () => window.scrollY !== undefined ? window.scrollY : window.pageYOffset;
|
||||
|
||||
await router.navigateByUrl('/fail');
|
||||
|
|
|
@ -2120,7 +2120,7 @@ withEachNg1Version(() => {
|
|||
}
|
||||
}
|
||||
|
||||
// On browsers that don't support `requestAnimationFrame` (IE 9, Android <= 4.3),
|
||||
// On browsers that don't support `requestAnimationFrame` (Android <= 4.3),
|
||||
// `$animate` will use `setTimeout(..., 16.6)` instead. This timeout will still be
|
||||
// on
|
||||
// the queue at the end of the test, causing it to fail.
|
||||
|
@ -2217,7 +2217,7 @@ withEachNg1Version(() => {
|
|||
}
|
||||
}
|
||||
|
||||
// On browsers that don't support `requestAnimationFrame` (IE 9, Android <= 4.3),
|
||||
// On browsers that don't support `requestAnimationFrame` (Android <= 4.3),
|
||||
// `$animate` will use `setTimeout(..., 16.6)` instead. This timeout will still be
|
||||
// on
|
||||
// the queue at the end of the test, causing it to fail.
|
||||
|
@ -2294,7 +2294,7 @@ withEachNg1Version(() => {
|
|||
}
|
||||
}
|
||||
|
||||
// On browsers that don't support `requestAnimationFrame` (IE 9, Android <= 4.3),
|
||||
// On browsers that don't support `requestAnimationFrame` (Android <= 4.3),
|
||||
// `$animate` will use `setTimeout(..., 16.6)` instead. This timeout will still be
|
||||
// on
|
||||
// the queue at the end of the test, causing it to fail.
|
||||
|
@ -2342,10 +2342,9 @@ withEachNg1Version(() => {
|
|||
}
|
||||
}
|
||||
|
||||
// On browsers that don't support `requestAnimationFrame` (IE 9, Android <= 4.3),
|
||||
// On browsers that don't support `requestAnimationFrame` (Android <= 4.3),
|
||||
// `$animate` will use `setTimeout(..., 16.6)` instead. This timeout will still be
|
||||
// on
|
||||
// the queue at the end of the test, causing it to fail.
|
||||
// on the queue at the end of the test, causing it to fail.
|
||||
// Mocking animations (via `ngAnimateMock`) avoids the issue.
|
||||
angular.module_('ng1', ['ngAnimateMock'])
|
||||
.component('ng1', {
|
||||
|
|
Loading…
Reference in New Issue