@ngdoc overview @name Developer Guide: Internet Explorer Compatibility @description # Overview This document describes the Internet Explorer (IE) idiosyncrasies when dealing with custom HTML attributes and tags. Read this document if you are planning on deploying your Angular application on IE v8.0 or earlier. The project currently supports and will attempt to fix bugs for IE8 and above. The continuous integration server runs all the tests against IE8. See http://ci.angularjs.org. IE7 and below are not tested and the project makes no guarantee that Angular will work on it. A subset of the AngularJS functionality may work. It is up to you to test and decide whether it works for your particular app. It is very unlikely that issues specific to IE7 or earlier will be given any time by the core team. [GitHub](https://github.com/angular/angular.js/issues/4974) # Short Version 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.
       
       
         
           
         
         
           ...
         
       
     
  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 `
       
       
         
           
         
         
           ...
         
       
     
The **important** parts are:
  * `xmlns:ng` - *namespace* - you need one namespace for each custom tag you are planning on
    using.
  * `document.createElement(yourTagName)` - *creation of custom tag names* - Since this is an
    issue only for older version of IE you need to load it conditionally. For each tag which does
    not have namespace and which is not defined in HTML you need to pre-declare it to make IE
    happy.
# Long Version
IE has issues with element tag names which are not standard HTML tag names. These fall into two
categories, and each category has its own fix.
  * If the tag name starts with `my:` prefix then it is considered an XML namespace and must
    have corresponding namespace declaration on ``
  * If the tag has no `:` but it is not a standard HTML tag, then it must be pre-created using
    `document.createElement('my-tag')`
  * If you are planning on styling the custom tag with CSS selectors, then it must be
    pre-created using `document.createElement('my-tag')` regardless of XML namespace.
## The Good News
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: ``.
## What happens if I fail to do this?
Suppose you have HTML with unknown tag `mytag` (this could also be `my:tag` or `my-tag` with same
result):
  
    
      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:
  1. A self closing `mytag`. Example of self closing tag is `