From f7d28cd377f06224247b950680517a187a7b6749 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Thu, 6 Feb 2014 14:02:18 +0000 Subject: docs(all): convert
/
snippets to GFM snippets --- docs/content/guide/ie.ngdoc | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'docs/content/guide/ie.ngdoc') diff --git a/docs/content/guide/ie.ngdoc b/docs/content/guide/ie.ngdoc index 334161cb..7a1c828c 100644 --- a/docs/content/guide/ie.ngdoc +++ b/docs/content/guide/ie.ngdoc @@ -26,7 +26,8 @@ To make your Angular application work on IE please make sure that: 1. You polyfill JSON.stringify for IE7 and below. You can use [JSON2](https://github.com/douglascrockford/JSON-js) or [JSON3](http://bestiejs.github.com/json3/) polyfills for this. -
+     
+		 ```html
        
        
          
@@ -38,21 +39,23 @@ To make your Angular application work on IE please make sure that:
            ...
          
        
-     
+ ``` 2. add `id="ng-app"` to the root element in conjunction with `ng-app` attribute -
+     
+		 ```html
        
        
          ...
        
-     
+ ``` 3. you **do not** use custom element tags such as `` (use the attribute version `
` instead), or 4. if you **do use** custom element tags, then you must take these steps to make IE 8 and below happy: -
+     
+		 ```html
        
        
          
@@ -73,7 +76,7 @@ To make your Angular application work on IE please make sure that:
            ...
          
        
-     
+ ``` The **important** parts are: @@ -112,37 +115,37 @@ attribute names. So this requires no special handling in IE: `
+```html some text - +``` It should parse into the following DOM: -
+```
 #document
   +- HTML
      +- BODY
         +- mytag
            +- #text: some text
-
+``` The expected behavior is that the `BODY` element has a child element `mytag`, which in turn has the text `some text`. But this is not what IE does (if the above fixes are not included): -
+```
 #document
   +- HTML
      +- BODY
         +- mytag
         +- #text: some text
         +- /mytag
-
+``` In IE, the behavior is that the `BODY` element has three children: @@ -162,7 +165,7 @@ In IE, the behavior is that the `BODY` element has three children: To make CSS selectors work with custom elements, the custom element name must be pre-created with `document.createElement('my-tag')` regardless of XML namespace. -
+```html