onerror兼容性测试 2014-07-12

同域错误信息:

  1. IE6:

     缺少对象        http://style.alibaba.com/test.html  2 
    
  2. IE8:

     缺少对象        http://style.alibaba.com/test.js    1   undefined   undefined
    
  3. IE9:

     “aaa”未定义    http://style.alibaba.com/test.js    1   undefined   undefined
    
  4. IE10:

     “aaa”未定义    http://style.alibaba.com/test.js    1   1   undefined 
    
  5. IE11:

     “aaa”未定义    http://style.alibaba.com/test.js    1   1   ReferenceError: “aaa”未定义
    
  6. Chrome:

     Uncaught ReferenceError: aaa is not defined http://style.alibaba.com/test.js    1   1   ReferenceError {stack: (...), message: "aaa is not defined"}
    
  7. Firefox:

     ReferenceError: aaa is not defined  http://style.alibaba.com/test.js    1   undefined   undefined
    

跨域错误信息:

  1. IE6:

     Script error    http://style.alibaba.com/test.html  9  
    
  2. IE8:

     Script error    http://style.aliunicorn.com/test.js 0   undefined   undefined
    
  3. IE9:

     “aaa”未定义    http://style.aliunicorn.com/test.js 8   undefined   undefined 
    
  4. IE10:

     “aaa”未定义   http://style.aliunicorn.com/test.js 8   1   undefined 
    
  5. IE11:

     Script error    http://style.aliunicorn.com/test.js 0   0   undefined
    
  6. Chrome:

     Script error.       0   0   null 
    
  7. Firefox:

     Script error.   http://style.aliunicorn.com/test.js 0   undefined   undefined
    

crossorigin特性支持浏览器列表

  1. Chrome 30+
  2. Firefox 13+
  3. Opera 12.5+
  4. Safari