看板 Ajax
作者 SansWord (是妳)
標題 Fw: [-IE-] 外譯: IE11,別再叫我 IE
時間 Fri Oct 25 11:38:57 2013


※ [本文轉錄自 Browsers 看板 #1IQUU-oB ]

看板 Browsers
作者 SansWord (是妳)
標題 [-IE-] 外譯: IE11,別再叫我 IE
時間 Fri Oct 25 11:38:34 2013


今天上班的時候才發現小弟的 team 要正式把 IE11 列入測試支援,

找了一篇文章介紹 IE11 的不同,並且做點歸納式的略譯。

比較以網頁開發的角度去講 IE11 的變動。也作為開發者的參考。



http://www.nczonline.net/blog/2013/07/02/internet-explorer-11-dont-call-me-ie/
Internet Explorer 11: “Don’t call me IE” | NCZOnline
This past week, Microsoft officially unveiled the first preview of Internet Explorer 11 for Windows 8.1. Doing so put to rest a whirlwind of rumors based on ...
 

縮: http://goo.gl/4VKvB0
Internet Explorer 11: “Don’t call me IE” | NCZOnline
This past week, Microsoft officially unveiled the first preview of Internet Explorer 11 for Windows 8.1. Doing so put to rest a whirlwind of rumors based on ...
 

internet-explorer-11 : 別再叫我 IE

IE 11 看起來應該會比較擁護標準。

文中提到了幾個重要變更:

1. User Agent 的變動: IE11 的 user agent 是
Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko

對比 IE10 的
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)


會發現過去每個 IE 系列一定會有的 MSIE 字樣被拿掉了,而且後面增加了 like Gecko。

如果有利用 User Agent 判斷 browser 版本的請注意。




2. 一系列 ie 獨特的 javascript api 被移除:

文中羅列如下:

最重要的大概就是 attachEvent / removeEvent 被拿掉了,
改回跟大家一樣使用 addEventListener 和 removeEventListener

以及以下幾個 api:

window.execScript() – IE’s own version of eval()

window.doScroll() – IE’s way of scrolling the window

script.onreadystatechange – IE’s way of telling of listening for when a script was loaded

script.readyState – IE’s way to test the load state of a script

document.selection – IE’s way of getting currently selected text

document.createStyleSheet – IE’s way to create a style sheet

style.styleSheet – IE’s way to reference a style sheet from a style object

按照文中的說法,都改為使用 "standards-based equivalents"



以下是我的結論:

也許對 IE11 的標準化我們可以比較樂觀....吧。

但是這也代表真的不能把 IE11 當成過去的 IE 看待,畢竟它移除了一些舊 IE 會
使用的 method。



但是這也反應在 IE11 的 UserAgent 上,如果 IE11 真的是所謂的 "標準瀏覽器" ,
這樣在判斷 Browser 的時候只要其 UserAgent 沒有 MSIE,

就可以用標準的方式對待它...吧。



稍微點評現有的幾個 IE 版本:

IE 6: 已經結束的夢靨。

IE 7,8: 正在進行的夢靨。

IE 9,10: 稍稍標準一點點的 IE。

IE 11: 看起來有點誠意的標準化 IE?



總之這次的更新除了一些 CSS 需要觀察之外,比較有用到 javascript 的相關
功能都得檢查一下。



同文轉至 Ajax 版

--
回憶不會消失...只會被蓋在灰塵下...

              只要沒有去吹動~~一切....就可以默默淡忘...

所以....不要成為那傷人吧.... ^.^                 

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.250.147.33

※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: SansWord (60.250.147.33), 時間: 10/25/2013 11:38:57

--