javascript - Angular 11 compatibility with Internet Explorer 5 - Stack Overflow

Is there any way to Angular 11 be patible to Internet Explorer 5? I'm developing an angular soluti

Is there any way to Angular 11 be patible to Internet Explorer 5? I'm developing an angular solution to a client and its default browser is Internet Explorer running document mode on version 5 (by default). At first I'm not suppose to change any browser configuration (i.e.: changing document mode to version 11 and set it default).

I'm using Angular 11.0.5 and Angular CLI 11.0.5:

Angular CLI: 11.0.5
Node: 14.16.1
OS: win32 x64

Angular: 11.0.5
... animations, cli, mon, piler, piler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1100.5
@angular-devkit/build-angular      0.1100.5
@angular-devkit/core               11.0.5
@angular-devkit/schematics         11.0.5
@angular/cdk                       11.0.3
@angular/material                  11.0.3
@angular/material-moment-adapter   12.0.4
@schematics/angular                11.0.5
@schematics/update                 0.1100.5
rxjs                               6.6.3
typescript                         4.0.5

There is my index.html

<!doctype html>
<html lang="pt-br">

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge; IE=11; IE=10; IE=9; IE=8; IE=7; IE=5" />
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta charset="utf-8">
  <title>Cronograma</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link href=":300,400,500&display=swap" rel="stylesheet">
  <link href="+Icons" rel="stylesheet">
</head>

<body class="mat-typography">
  <app-root></app-root>
</body>



</html>

I tried also to change <!doctype html> and <meta http-equiv="X-UA-Compatible" content="IE=5" /> but nothing happens.

There is my src/polyfills.ts:

/***************************************************************************************************
 * Zone JS is required by default for Angular itself.
 */

import 'core-js/es/reflect';
import 'core-js/es/symbol';
import 'core-js/es/promise';
import 'core-js/es/object';
import 'core-js/es/function';
import 'core-js/es/parse-int';
import 'core-js/es/parse-float';
import 'core-js/es/number';
import 'core-js/es/math';
import 'core-js/es/string';
import 'core-js/es/date';
import 'core-js/es/array';
import 'core-js/es/regexp';
import 'core-js/es/map';
import 'core-js/es/weak-map';
import 'core-js/es/set';

import 'zone.js/dist/zone';  // Included with Angular CLI.

import 'classlist.js';
import 'web-animations-js';

/***************************************************************************************************
 * APPLICATION IMPORTS
 */

Is there any way to Angular 11 be patible to Internet Explorer 5? I'm developing an angular solution to a client and its default browser is Internet Explorer running document mode on version 5 (by default). At first I'm not suppose to change any browser configuration (i.e.: changing document mode to version 11 and set it default).

I'm using Angular 11.0.5 and Angular CLI 11.0.5:

Angular CLI: 11.0.5
Node: 14.16.1
OS: win32 x64

Angular: 11.0.5
... animations, cli, mon, piler, piler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1100.5
@angular-devkit/build-angular      0.1100.5
@angular-devkit/core               11.0.5
@angular-devkit/schematics         11.0.5
@angular/cdk                       11.0.3
@angular/material                  11.0.3
@angular/material-moment-adapter   12.0.4
@schematics/angular                11.0.5
@schematics/update                 0.1100.5
rxjs                               6.6.3
typescript                         4.0.5

There is my index.html

<!doctype html>
<html lang="pt-br">

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge; IE=11; IE=10; IE=9; IE=8; IE=7; IE=5" />
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta charset="utf-8">
  <title>Cronograma</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link href="https://fonts.googleapis./css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis./icon?family=Material+Icons" rel="stylesheet">
</head>

<body class="mat-typography">
  <app-root></app-root>
</body>



</html>

I tried also to change <!doctype html> and <meta http-equiv="X-UA-Compatible" content="IE=5" /> but nothing happens.

There is my src/polyfills.ts:

/***************************************************************************************************
 * Zone JS is required by default for Angular itself.
 */

import 'core-js/es/reflect';
import 'core-js/es/symbol';
import 'core-js/es/promise';
import 'core-js/es/object';
import 'core-js/es/function';
import 'core-js/es/parse-int';
import 'core-js/es/parse-float';
import 'core-js/es/number';
import 'core-js/es/math';
import 'core-js/es/string';
import 'core-js/es/date';
import 'core-js/es/array';
import 'core-js/es/regexp';
import 'core-js/es/map';
import 'core-js/es/weak-map';
import 'core-js/es/set';

import 'zone.js/dist/zone';  // Included with Angular CLI.

import 'classlist.js';
import 'web-animations-js';

/***************************************************************************************************
 * APPLICATION IMPORTS
 */
Share Improve this question asked Jul 16, 2021 at 14:43 Lucas FerrariLucas Ferrari 413 bronze badges 2
  • 8 Angular 12 deprecates IE 11... It might be time to ask your client to move off of Window 98... – Heretic Monkey Commented Jul 16, 2021 at 14:54
  • 2 There is no way you can charge somebody running IE5 enough to make it worth your while to develop an application for IE5. – Chris Strickland Commented Jul 16, 2021 at 22:31
Add a ment  | 

1 Answer 1

Reset to default 13

Absolutely no. Angular 2+ never supported IE5 (and I doubt even Angular.js did back in the day). You can see the list of supported browsers here - the oldest IE supported is 11.

No idea why your client uses such an old and insecure browser, but a single page application is not a feasible solution in this case.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744229851a4564194.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信