diff options
| author | Brian Ford | 2012-08-07 16:58:11 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-08-10 16:37:42 -0700 | 
| commit | 58d946957477cbc246604cd779477f41fc7dccb7 (patch) | |
| tree | b4bbfaefdc622808ad14f0c09d194b320528817c /docs/content/guide/ie.ngdoc | |
| parent | 8d858a2360d5d9d426f7bae58f59c892c6d2d264 (diff) | |
| download | angular.js-58d946957477cbc246604cd779477f41fc7dccb7.tar.bz2 | |
fix(docs): added note about using JSON3 as a polyfill for IE7
Diffstat (limited to 'docs/content/guide/ie.ngdoc')
| -rw-r--r-- | docs/content/guide/ie.ngdoc | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/content/guide/ie.ngdoc b/docs/content/guide/ie.ngdoc index f2044e77..803942f8 100644 --- a/docs/content/guide/ie.ngdoc +++ b/docs/content/guide/ie.ngdoc @@ -12,12 +12,12 @@ on IE v8.0 or earlier.  To make your angular application work on IE please make sure that: -  1.  You provide JSON.stringify (via -  [Douglas Crockford's JSON2 library](https://github.com/douglascrockford/JSON-js), or similar) -  if the browser does not have it. IE7 and earlier will need this. +  1. You polyfill JSON.stringify if necessary (IE7 will need this). You can use +     [JSON2](https://github.com/douglascrockford/JSON-js) or +     [JSON3](http://bestiejs.github.com/json3/) polyfills for this. -  2. you **do not** use custom element tags such as `<ng:view>` (use the attribute version `<div -  ng-view>` instead), or +  2. you **do not** use custom element tags such as `<ng:view>` (use the attribute version +     `<div ng-view>` instead), or    3. if you **do use** custom element tags, then you must take these steps to make IE happy: @@ -29,7 +29,7 @@ To make your angular application work on IE please make sure that:            document.createElement('ng-include');            document.createElement('ng-pluralize');            document.createElement('ng-view'); -           +            // Optionally these for CSS            document.createElement('ng:include');            document.createElement('ng:pluralize'); @@ -71,7 +71,7 @@ categories, and each category has its own fix.  ## The Good News -The good news is that these restrictions only apply to element tag names, and not to element  +The good news is that these restrictions only apply to element tag names, and not to element  attribute names. So this requires no special handling in IE: `<div my-tag your:tag></div>`. @@ -137,7 +137,7 @@ The to make CSS selector work with custom elements the custom element name must          <script>            // needed to make ng-include parse properly            document.createElement('ng-include'); -           +            // needed to enable CSS reference            document.createElement('ng:view');          </script>  | 
