From f24cf4b58f3c2e56df188738356b21e6c898ff0c Mon Sep 17 00:00:00 2001 From: Brian Campbell Date: Wed, 10 Apr 2013 18:46:57 -0600 Subject: [PATCH] docs(guide): updates for legacy IE7 support - note re: id="ng-app" to bootstrap/IE partials - added doctype/xmlns to markup - add cond comment re: json2/3 to markup --- docs/content/guide/bootstrap.ngdoc | 4 ++ docs/content/guide/ie.ngdoc | 71 +++++++++++++++++++----------- 2 files changed, 50 insertions(+), 25 deletions(-) diff --git a/docs/content/guide/bootstrap.ngdoc b/docs/content/guide/bootstrap.ngdoc index f1a465172647..3983f7b50def 100644 --- a/docs/content/guide/bootstrap.ngdoc +++ b/docs/content/guide/bootstrap.ngdoc @@ -38,6 +38,10 @@ initialization. + * If IE7 support is required add `id="ng-app"` + + + * If you choose to use the old style directive syntax `ng:` then include xml-namespace in `html` to make IE happy. (This is here for historical reasons, and we no longer recommend use of `ng:`.) diff --git a/docs/content/guide/ie.ngdoc b/docs/content/guide/ie.ngdoc index 0fc2b065b76d..8f65a63bb0b9 100644 --- a/docs/content/guide/ie.ngdoc +++ b/docs/content/guide/ie.ngdoc @@ -15,33 +15,54 @@ To make your Angular application work on IE please make sure that: 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 `` (use the attribute version +
+       
+       
+         
+           
+         
+         
+           ...
+         
+       
+     
+ + 2. add `id="ng-app"` to the root element in conjunction with `ng-app` attribute +
+       
+       
+         ...
+       
+     
+ + 3. you **do not** use custom element tags such as `` (use the attribute version `
` instead), or - 3. if you **do use** custom element tags, then you must take these steps to make IE happy: - -
-  
-    
-      
-    
-    
-      ...
-    
-  
-
+ 4. if you **do use** custom element tags, then you must take these steps to make IE happy: +
+       
+       
+         
+           
+         
+         
+           ...
+         
+       
+     
The **important** parts are: