Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 116e1d7

Browse files
wesleychoNarretz
authored andcommitted
docs(guide): add notes about using ngAttr for IE
- Add note about using the value attribute for the progress tag with IE in the IE compat / interpolation guide - Add note about placeholder attribute in textarea to the ie compat guide Closes #7218 PR (#14753)
1 parent 6a13460 commit 116e1d7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: docs/content/guide/ie.ngdoc

+9-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ To ensure your Angular application works on IE please consider:
2929

3030
1. Use `ng-style` tags instead of `style="{{ someCss }}"`. The latter works in Chrome and Firefox
3131
but does not work in Internet Explorer <= 11 (the most recent version at time of writing).
32-
2. For the `type` attribute of buttons, use `ng-attr-type` tags instead of
33-
`type="{{ someExpression }}"`. If using the latter, Internet Explorer overwrites the expression
32+
2. For the `type` attribute of buttons, use `ng-attr-type` tags instead of
33+
`type="{{ someExpression }}"`. If using the latter, Internet Explorer overwrites the expression
3434
with `type="submit"` before Angular has a chance to interpolate it.
35+
3. For the `value` attribute of progress, use `ng-attr-value` tags instead of
36+
`value="{{ someExpression}}"`. If using the latter, Internet Explorer overwrites the expression
37+
with `value="0"` before Angular has a chance to interpolate it.
38+
4. For the `placeholder` attribute of textarea, use `ng-attr-placeholder` tags instead
39+
of `placeholder="{{ someExpression }}"`. If using the latter, Internet Explorer will error
40+
on accessing the `nodeValue` on a parentless `TextNode` in Internet Explorer 10 & 11
41+
(see [issue 5025](https://github.com/angular/angular.js/issues/5025)).

Diff for: docs/content/guide/interpolation.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ can be used with `ngAttr` instead. The following is a list of known problematic
104104
- **size** in `<select>` elements (see [issue 1619](https://github.com/angular/angular.js/issues/1619))
105105
- **placeholder** in `<textarea>` in Internet Explorer 10/11 (see [issue 5025](https://github.com/angular/angular.js/issues/5025))
106106
- **type** in `<button>` in Internet Explorer 11 (see [issue 14117](https://github.com/angular/angular.js/issues/5025))
107-
107+
- **value** in `<progress>` in Internet Explorer = 11 (see [issue 7218](https://github.com/angular/angular.js/issues/7218))
108108

109109
### Embedding interpolation markup inside expressions
110110

0 commit comments

Comments
 (0)