蓝色天空网mbsky.com · 知识 · 实践 · 创造浏览器信息 · 本地阅读预览
教程 / 网站建设 / 浏览器信息

Internet Explorer:历史版本与迁移

保留各代IE能力和移除项,把文档模式、遗留API与现代代码分开。

本站独立整理的内容草稿。实例显示的是预期结果;浏览器、服务端运行与技术内容验收尚待完成,本页只用于阅读和图文核对。

学完这一章,你能够

历史与支持范围

IE从1995年开始发展,后续长期随Windows演进。IE11桌面应用在部分Windows10版本于2022-06-15结束支持;不同产品/系统版本的生命周期不能用一个日期概括所有MSHTML嵌入用途。

本章原始配图待补,保持在对应历史/统计说明段落后;自有运行图不冒充原图采集成功。

现代项目优先标准接口;确有企业遗留依赖时,按受支持Windows、Edge版本和策略配置IE模式。普通Chromium页面不会因为品牌叫Edge就自动具有ActiveX、HTC或全部IE行为。

按版本保留能力与删除项

下表逐代保留IE11到1.0以及Mac分支,包含F12、图形、媒体、DOM、CSS、打印、RSS、标签、隐私、下载和旧专有组件。历史速度百分比没有统一实验条件,不作性能承诺。

IE8的InPrivate应解释为私人浏览而非非私人浏览;兼容性视图也不等于完整安装另一个IE。WindowsXP原始默认浏览器是IE6,不能把IE7一概称作XP SP2预装默认版本。

正确替代与真实观察

document.all带特殊历史兼容语义,不能用if(document.all)判断IE,也不应依赖它选择全部元素。使用querySelector/getElementById等明确接口;attachEvent迁移addEventListener还要考虑this、事件对象和捕获差异。

本例真实创建两个按钮处理器,点击、移除监听后分别观察次数;同时记录document.all的typeof/布尔特性。该观察在现代Edge中执行,不是假装已经运行历史IE11或IE模式。

历史发行与技术条目(非当前支持承诺)

版本日期/历史时期保留的能力与用途准确性、迁移及运行边界
11Windows7/8.1时期F12重做、WebGL、高DPI、border-image/Flexbox、Win8.1的SPDY、全屏/方向、触控、JS、MutationObserver、加密及媒体文本/加密媒体、编辑能力document.all遗留怪异语义不作检测;attachEvent、快速标签、离线菜单、跨应用拖放、大按钮、一次查看全部cookies等旧功能有变动;不概括所有能力完全兼容。
10Windows8及后来Win7SP1async、AppCache、MessageChannel、拖放、History、Sandbox、拼写/视频、Worker/WebSocket、CSS变换/动画/字体/渐变/过渡/阴影、命中测试/媒体查询/XHR/Pointer、SVG滤镜、IndexedDB、触控/自动更正/翻页及UA更新当时Flash整合不再是今天安装建议;XML数据岛/VML/HTC/DX滤镜/条件注释被淘汰,内容顾问转向系统家长控制;速度百分比没有统一基准不作保证。
92011历史版本简化界面/统一地址搜索、硬件加速、任务栏固定/跳转列表、新标签和会话恢复、附加组件性能、跟踪保护、HTML5/CSS/SVG/Canvas、下载暂停恢复/风险提示、跨窗口标签硬件加速不是一切操作总更快;隐私保护非完全不留记录。
82009历史版本加速器/Web Slices、兼容性视图、搜索建议、标签分组/恢复/隔离、InPrivate、SmartScreen、CSS2.1与属性/引号元素互操作修复兼容性视图是旧文档模式,不保证所有网站都像完整IE7;InPrivate不是非私人浏览,不等于网络匿名。
72006历史版本打印缩放/页边距/布局/选中文本、即时搜索提供程序、收藏中心、RSS发现/订阅/筛选、标签/缩略图/标签组、页面缩放WindowsXP最初附带IE6,不把IE7称为XP SP2一开始预装版本;旧RSS界面不保证今天仍在。
62001历史版本WindowsXP时代默认浏览器及旧兼容背景已过时,不为新站推荐旧运行环境。
5.52000历史版本XML/XSL、CSS、打印预览、HTC等旧能力HTC是IE专有历史,不作现代组件接口。
5.011999历史版本5.0维护修复不把维护版当全新标准版本。
5.01999历史版本XML能力及旧平台集成不以首个主流等绝对措辞替代各实现的历史核对。
4.01997历史版本早期CSS/DOM支持支持程度存在限制,不写完美兼容。
3.01996历史版本早期网页环境不据旧比例宣称如今仍有固定使用率。
2.01995历史版本早期发行不建议实际访问现代站点。
1.01995历史版本初代产品历史背景不构成现行支持。
Mac5.1.7MacOS8/9历史最后分支之一与MacOSX版5.2.3区分。
Mac5.2.3MacOSX历史不同平台能力Mac产品线早已终止支持,迁移现代受支持浏览器。

历史统计表 0b1789e2(原始异常保留,非本站/当前全球样本)

2014总计IE 11IE 10IE 9IE 8IE 7IE 6
5 月8.9 %2.7 %1.4 %1.9 %2.1 %0.2 %0.0 %
4 月9.4 %2.7 %1.6 %2.0 %2.4 %0.3 %0.1 %
3 月9.7 %2.6 %1.6 %2.1 %2.5 %0.3 %0.1 %
2 月9.8 %2.5 %1.7 %2.1 %2.7 %0.3 %0.1 %
1 月10.2 %2.5 %1.7 %2.3 %3.1 %0.4 %0.1 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2013总计IE 11IE 10IE 9IE 8IE 7IE 6
12 月9.0 %0.8 %2.1 %2.4 %3.2 %0.4 %0.1 %
11 月10.5 %未记录(不等于0)3.5 %2.5 %3.6 %0.5 %0.1 %
10 月11.7 %未记录(不等于0)4.0 %3.0 %4.1 %0.5 %0.1 %
9 月12.1 %未记录(不等于0)4.0 %2.8 %4.6 %0.6 %0.1 %
8 月11.8 %未记录(不等于0)3.6 %2.8 %4.7 %0.6 %0.1 %
7 月11.8 %未记录(不等于0)3.3 %2.8 %4.8 %0.7 %0.1 %
6 月12.0 %未记录(不等于0)3.1 %3.2 %4.9 %0.7 %0.1 %
5 月12.6 %未记录(不等于0)2.6 %3.9 %5.2 %0.8 %0.1 %
4 月12.7 %未记录(不等于0)2.0 %4.4 %5.3 %0.8 %0.1 %
3 月12.9 %未记录(不等于0)1.3 %5.2 %5.5 %0.8 %0.2 %
2 月13.5 %未记录(不等于0)0.9 %5.7 %5.8 %0.9 %0.2 %
1 月14.3 %未记录(不等于0)0.8 %5.9 %6.4 %1.0 %0.3 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2012总计未记录(不等于0)IE 10IE 9IE 8IE 7IE 6
12 月14.7 %未记录(不等于0)0.6 %5.9 %6.8 %1.1 %0.3 %
11 月15.1 %未记录(不等于0)0.4 %6.5 %6.8 %1.1 %0.3 %
10 月16.1 %未记录(不等于0)0.2 %6.8 %7.6 %1.2 %0.3 %
9 月16.4 %未记录(不等于0)0.2 %6.6 %7.9 %1.3 %0.4 %
8 月16.2 %未记录(不等于0)0.1 %6.1 %7.8 %1.8 %0.5 %
7 月16.3 %未记录(不等于0)0.1 %5.9 %7.9 %2.0 %0.6 %
6 月16.7 %未记录(不等于0)0.1 %6.1 %8.0 %1.9 %0.6 %
5 月18.1 %未记录(不等于0)0.1 %6.5 %8.8 %2.1 %0.6 %
4 月18.3 %未记录(不等于0)0.1 %6.4 %8.8 %2.3 %0.7 %
3 月18.9 %未记录(不等于0)0.0 %6.1 %9.4 %2.5 %0.9 %
2 月19.5 %未记录(不等于0)0.0 %5.7 %10.2 %2.6 %1.0 %
1 月20.1 %未记录(不等于0)0.1 %5.3 %10.5 %3.1 %1.1 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2011总计未记录(不等于0)未记录(不等于0)IE 9IE 8IE 7IE 6
12 月20.2 %未记录(不等于0)未记录(不等于0)5.1 %10.7 %3.2 %1.2 %
11 月21.2 %未记录(不等于0)未记录(不等于0)5.1 %11.5 %3.4 %1.2 %
10 月21.7 %未记录(不等于0)未记录(不等于0)5.1 %11.8 %3.5 %1.3 %
9 月22.9 %未记录(不等于0)未记录(不等于0)4.8 %12.4 %3.9 %1.8 %
8 月22.5 %未记录(不等于0)未记录(不等于0)4.2 %11.9 %4.2 %2.0 %
7 月22.0 %未记录(不等于0)未记录(不等于0)3.9 %11.7 %4.1 %2.3 %
6 月23.2 %未记录(不等于0)未记录(不等于0)3.6 %12.9 %4.4 %2.3 %
5 月24.9 %未记录(不等于0)未记录(不等于0)3.1 %14.1 %5.3 %2.4 %
4 月24.3 %未记录(不等于0)未记录(不等于0)2.1 %14.8 %4.9 %2.5 %
3 月25.8 %未记录(不等于0)未记录(不等于0)1.1 %16.3 %5.4 %3.0 %
2 月26.5 %未记录(不等于0)未记录(不等于0)0.6 %16.7 %5.7 %3.5 %
1 月26.6 %未记录(不等于0)未记录(不等于0)0.5 %16.6 %5.7 %3.8 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2010总计未记录(不等于0)未记录(不等于0)IE 9IE 8IE 7IE 6
12 月27.5 %未记录(不等于0)未记录(不等于0)0.5 %16.5 %6.1 %4.4 %
11 月28.6 %未记录(不等于0)未记录(不等于0)0.4 %17.6 %6.5 %4.1 %
10 月29.7 %未记录(不等于0)未记录(不等于0)0.4 %17.3 %7.2 %4.8 %
9 月31.1 %未记录(不等于0)未记录(不等于0)0.2 %17.3 %8.0 %5.6 %
8 月30.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)16.2 %7.8 %6.7 %
7 月30.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)15.6 %7.6 %7.2 %
6 月31.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)15.7 %8.1 %7.2 %
5 月32.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)16.0 %9.1 %7.1 %
4 月33.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)16.2 %9.3 %7.9 %
3 月34.9 %未记录(不等于0)未记录(不等于0)未记录(不等于0)15.3 %10.7 %8.9 %
2 月35.3 %未记录(不等于0)未记录(不等于0)未记录(不等于0)14.7 %11.0 %9.6 %
1 月36.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)14.3 %11.7 %10.2 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2009总计未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 8IE 7IE 6
12 月37.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)13.5 %12.8 %10.9 %
11 月37.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)13.3 %13.3 %11.1 %
10 月37.5 %未记录(不等于0)未记录(不等于0)未记录(不等于0)12.8 %14.1 %10.6 %
9 月39.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)12.2 %15.3 %12.1 %
8 月39.3 %未记录(不等于0)未记录(不等于0)未记录(不等于0)10.6 %15.1 %13.6 %
7 月39.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)9.1 %15.9 %14.4 %
6 月40.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)7.1 %18.7 %14.9 %
5 月41.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)5.2 %21.3 %14.5 %
4 月42.1 %未记录(不等于0)未记录(不等于0)未记录(不等于0)3.5 %23.2 %15.4 %
3 月43.3 %未记录(不等于0)未记录(不等于0)未记录(不等于0)1.4 %24.9 %17.0 %
2 月43.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)0.8 %25.4 %17.4 %
1 月44.8 %未记录(不等于0)未记录(不等于0)未记录(不等于0)0.6 %25.7 %18.5 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2008总计未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 7IE 6IE 5
12 月46.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.1 %19.6 %0.3 %
11 月47.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.6 %20.0 %0.4 %
10 月47.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.9 %20.2 %0.3 %
9 月49.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.3 %22.3 %0.4 %
8 月51.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.0 %24.5 %0.5 %
7 月52.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.4 %25.3 %0.7 %
6 月54.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)27.0 %26.5 %0.7 %
5 月54.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)26.5 %27.3 %0.6 %
4 月54.8 %未记录(不等于0)未记录(不等于0)未记录(不等于0)24.9 %28.9 %1.0 %
3 月53.9 %未记录(不等于0)未记录(不等于0)未记录(不等于0)23.3 %29.5 %1.1 %
2 月54.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)22.7 %30.7 %1.3 %
1 月54.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)21.2 %32.0 %1.5 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2007总计未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 7IE 6IE 5
11 月56.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)20.8 %33.6 %1.6 %
9 月57.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)20.8 %34.9 %1.5 %
7 月58.5 %未记录(不等于0)未记录(不等于0)未记录(不等于0)20.1 %36.9 %1.5 %
5 月58.9 %未记录(不等于0)未记录(不等于0)未记录(不等于0)19.2 %38.1 %1.6 %
3 月58.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)18.0 %38.7 %2.0 %
1 月58.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)13.3 %42.3 %3.0 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2006总计未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 7IE 6IE 5
11 月60.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)7.1 %49.9 %3.6 %
9 月62.1 %未记录(不等于0)未记录(不等于0)未记录(不等于0)2.5 %55.6 %4.0 %
7 月62.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)1.9 %56.3 %4.2 %
5 月63.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)1.1 %57.4 %4.5 %
3 月64.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)0.6 %58.8 %5.3 %
1 月66.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)0.2 %60.3 %5.5 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2005总计未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 6IE 5
11 月68.9 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)62.7 %6.2 %
9 月75.5 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)69.8 %5.7 %
7 月73.8 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)67.9 %5.9 %
5 月71.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)64.8 %6.8 %
3 月72.5 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)63.6 %8.9 %
1 月74.5 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)64.8 %9.7 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2004总计未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 6IE 5
11 月76.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)66.0 %10.2 %
9 月79.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)67.8 %11.2 %
7 月80.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)67.2 %13.2 %
5 月81.9 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)68.1 %13.8 %
3 月82.8 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)68.2 %14.6 %
1 月84.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)68.9 %15.8 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2003总计未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 6IE 5
11 月84.9 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)71.2 %13.7 %
9 月86.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)69.7 %16.9 %
7 月87.2 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)66.9 %20.3 %
5 月87.7 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)65.0 %22.7 %
3 月88.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)63.4 %24.6 %
1 月84.6 %未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)55.3 %29.3 %
未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)未记录(不等于0)
2002总计未记录(不等于0)未记录(不等于0)未记录(不等于0)IE 6IE 5IE4
11 月83.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)53.5 %29.9 %未记录(不等于0)
9 月83.5 %未记录(不等于0)未记录(不等于0)未记录(不等于0)49.1 %34.4 %未记录(不等于0)
7 月85.0 %未记录(不等于0)未记录(不等于0)未记录(不等于0)44.4 %40.1 %0.5%
5 月87.4 %未记录(不等于0)未记录(不等于0)未记录(不等于0)40.7 %46.0 %0.7%
3 月86.8 %未记录(不等于0)未记录(不等于0)未记录(不等于0)36.7 %49.4 %0.7%
1 月86.8 %未记录(不等于0)未记录(不等于0)未记录(不等于0)30.1 %55.7 %1.0%

接口、输入与可观察结果

项目输入/语法输出/作用有效条件/边界
addEventListener类型、回调、options注册监听同一回调身份影响移除
removeEventListener类型、相同回调、捕获条件移除不是匿名新函数即可移除
document.allHTMLDDA兼容对象特殊typeof/布尔/宽松相等不是正常undefined或可靠品牌检测
IE模式受支持Windows/Edge/策略遗留站点兼容不等于普通Chromium页具备ActiveX

本章独立核心源码与验证步骤

javascript · 阅读源码
import {check,finish,historical,percent,shares,percentagePoints,relativeGrowth,uaClue} from './lab-data.js';
try{
await historical('browsers-explorer');let first=0,second=0;const button=document.querySelector('#listen'),update=()=>{document.querySelector('#counts').textContent=first+'/'+second;window.mbskyCounts={first,second}},handler=()=>{second++;update()};button.addEventListener('click',function(event){check(this===button&&event.currentTarget===button,'listener this/currentTarget');first++;update()});button.addEventListener('click',handler);document.querySelector('#remove').onclick=()=>button.removeEventListener('click',handler);update();const legacy={typeof_all:typeof document.all,boolean_all:Boolean(document.all),all_equals_undefined:document.all==undefined,all_strict_undefined:document.all===undefined,attachEvent:typeof button.attachEvent,actual_IE_not_run:true};check(legacy.typeof_all==='undefined'&&!legacy.boolean_all&&legacy.all_equals_undefined&&!legacy.all_strict_undefined,'legacy HTMLDDA semantics');document.querySelector('#legacy').textContent=JSON.stringify(legacy,null,2);finish({legacy,initial_counts:window.mbskyCounts});
}catch(error){window.mbskyError=String(error);document.querySelector('#status').textContent='运行失败:'+String(error)}
Internet Explorer:历史版本与迁移:独立可运行实验

所需环境:Windows / Edge156.0.4314.58 / 本包HTTP / DPR1及显示章DPR2

当前源码 SHA256:9d99cba72a2008814c00456dfa3a8e882536b622b452787ba8196fa78534c9c9

预期结果 · 待实际运行核验
  • 两监听初次各1,移除第二监听再点后2/1;document.all特殊语义成立;未实际运行历史IE。

常见错误与边界

  • 把旧统计、旧版本功能或其它浏览器品牌的历史说明当成当前已实机验证。
  • 把缺失当0、负比例当合理数据、异常格式静默修正,或混淆百分点与相对增长。
  • 只看UA/支持接口存在就认为用户身份与实际行为都已验证。

练习与解答

只改变一个自有输入或视口条件,写明分母、环境和预期,再比较真实页面数值与像素/几何。

展开参考解答

按本章具体接口条件和断言核对,所有浏览器品牌与历史平台按真实运行环境分别验收。

规范与官方依据