@@ -26,7 +26,7 @@ To make your Angular application work on IE please make sure that:
26
26
1. You polyfill JSON.stringify for IE7 and below. You can use
27
27
[JSON2](https://github.com/douglascrockford/JSON-js) or
28
28
[JSON3](http://bestiejs.github.com/json3/) polyfills for this.
29
-
29
+
30
30
```html
31
31
<!doctype html>
32
32
<html xmlns:ng="http://angularjs.org">
@@ -42,7 +42,7 @@ To make your Angular application work on IE please make sure that:
42
42
```
43
43
44
44
2. add `id="ng-app"` to the root element in conjunction with `ng-app` attribute
45
-
45
+
46
46
```html
47
47
<!doctype html>
48
48
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="optionalModuleName">
@@ -54,7 +54,7 @@ To make your Angular application work on IE please make sure that:
54
54
`<div ng-view>` instead), or
55
55
56
56
4. if you **do use** custom element tags, then you must take these steps to make IE 8 and below happy:
57
-
57
+
58
58
```html
59
59
<!doctype html>
60
60
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="optionalModuleName">
@@ -64,7 +64,7 @@ To make your Angular application work on IE please make sure that:
64
64
document.createElement('ng-include');
65
65
document.createElement('ng-pluralize');
66
66
document.createElement('ng-view');
67
-
67
+
68
68
// Optionally these for CSS
69
69
document.createElement('ng:include');
70
70
document.createElement('ng:pluralize');
@@ -79,7 +79,7 @@ To make your Angular application work on IE please make sure that:
79
79
```
80
80
5. Use `ng-style` tags instead of `style="{{ someCss }}"`. The later works in Chrome and Firefox
81
81
but does not work in Internet Explorer <= 11 (the most recent version at time of writing).
82
-
82
+
83
83
84
84
The **important** parts are:
85
85
@@ -165,7 +165,7 @@ In IE, the behavior is that the `BODY` element has three children:
165
165
166
166
## CSS Styling of Custom Tag Names
167
167
168
- To make CSS selectors work with custom elements, the custom element name must be pre-created with
168
+ To make CSS selectors work with custom elements, the custom element name must be pre-created with
169
169
`document.createElement('my-tag')` regardless of XML namespace.
170
170
171
171
```html
0 commit comments