Top Banner
Giorgio Sardo IE Technical Evangelist, Microsoft Corp [email protected] Internet Explorer 9 Overview
48

Ie9 overview

Dec 06, 2014

Download

Technology

itchina110

web标准化交流会(w3ctech.com)上微软总部负责IE系列产品的同事Giorgio Sadro 分享《HTML5 and Internet Explorer 9.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ie9 overview

Giorgio SardoIE Technical Evangelist, Microsoft [email protected]

Internet Explorer 9 Overview

Page 2: Ie9 overview

IE9 At-A-Glance

Developers Platform

HTML5 and Microsoft

Performance

Q&A

Agenda

Page 3: Ie9 overview

Internet Explorer 9

Welcome to the future

Page 4: Ie9 overview

Engineering for IE9 is about delivering:

• A fast, clean experience that allows IE users to

just browse

• A highly interoperable platform for developers

to build compelling, graphically rich site and

applications, powered by Windows

IE9 At-A-Glance

High performance browser

Best interoperable HTML5

Hardware accelerated graphics

Page 5: Ie9 overview

HTML5 and Internet Explorer 9

Page 6: Ie9 overview

Participation to W3C Working Groups

• HTML 5 WG• DOM WG• CSS WG• SVG WG• SVG Testing Task Force• HTML Testing Task Force• Accessibility Task Force• …

Microsoft and Web Standards

Page 7: Ie9 overview

Paul Cotton (Microsoft), co-chair

40 W3C Member organizations

411 group participants

280 invited Experts

9 mailing lists (~4000 emails on public-html)

As of March 15th:

• 153 unresolved bugs, 34 unresolved issues (e.g.

decentralized extensibility, document license…)

HTML Working Group

Page 9: Ie9 overview

HTML5 • Defines the behavior at seams of other specs• Parsing unknown elements• Integrated SVG

XHTML/XML• Namespaces for using custom elements• Strict, fail-fast parsing helps developers find errors quickly

SVG• Standalone XML-based document (.svg file)• Inline in an XHTML document• Inline in an HTML5 document

Markup Languages in IE9

Page 10: Ie9 overview

Interpret the same HTML and CSS markup the same

way

Always some differences on the edges

• Standards evolve• Browsers implement in different order

Contributing DOM, CSS3 Standards Compliance Tests to

W3C

Interoperable HTML5 Markup

Page 11: Ie9 overview

Microsoft Confidential

Interoperable Markup

Demo

Page 12: Ie9 overview

W3C Web Standards

Number of Submitted Tests

Internet Explorer 9Platform Preview

Mozilla Firefox 3.6 Opera 10.50 Apple Safari 4.0

Google Chrome 4.0

SVG 1.1 2nd edition

31 100% 90% 97% 94% 94%

CSS3 Borders & Backgrounds

33 100% 27% 88% 27% 91%

CSS3 Selectors 16 94% 81% 63% 50% 50%

DOM Level 2 Core

9 100% 89% 100% 100% 100%

DOM Level 3 Events

10 100% 40% 40% 50% 50%

DOM Level 2 Style

5 80% 100% 80% 20% 0%

W3C Test Suites

Source: http://samples.msdn.microsoft.com/ietestcenter/

Page 13: Ie9 overview

HTML5 <video> element

• Industry-standard MPEG-4/H.264 video• Video can be composited with anything else on the page

• HTML content, images, SVG graphics

• GPU-based implementation capable of maintaining 60fps full-

screen at full HD resolution• Supports both DXVA and full hardware video decoders

HTML5 <audio> element

• Industry-standard MP3 and AAC audio

HTML 5 Video

<video width="800" height="450" src="myvideo.mp4" autoplay>

No video for you</video>

Page 14: Ie9 overview

Microsoft Confidential

Video Tag

Demo

Page 15: Ie9 overview

Markup-/DOM-based graphics: SVG 1.1

• “View source” simplicity—aids learning• Easy server-side generation—it’s just XML• Easy client-side debugging—it’s in the DOM• Supported by popular graphics programs• Easy integration with HTML5

SVG (Scalable Vector Graphics)

<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg">

<rect fill="red" x="20" y="20" width="100" height="75" />

<rect fill="blue" x="50" y="50" width="100" height="75" />

</svg>

Page 16: Ie9 overview

Microsoft Confidential

SVG

Demo

Page 17: Ie9 overview

SVG in IE9 Platform PreviewSVG Feature Today IE9

Document Structure

Basic Shapes

Paths

Text

Transforms

Painting, Filling, Color

Scripting

Styling

Gradients and Patterns

Clipping and Masking

Markers and Symbols

Filter Effects

Declarative Animation

SVG Fonts

Page 18: Ie9 overview

CSS3 Color

• Alpha color with rgba() and hsla() color functions• Transparency control with the opacity property

CSS3 Backgrounds and Borders

• Round corners with the border-radius property• Multiple background images per element• box-shadow property on block elements

Graphically-rich Styling with CSS3

Page 19: Ie9 overview

CSS3 Selectors

• Help you do more on your site with less script• Make it easier to use new graphics capabilities

CSS3 Namespaces

• Style elements with namespaces in XHTML documents

CSS Infrastructure

Page 20: Ie9 overview

CSS 3 Selectors

Page 21: Ie9 overview

Microsoft Confidential

CSS 3

Demo

Page 22: Ie9 overview

Central part of web platform used to

manipulate the DOM

• DOM Core

• DOM Events

• DOM Style

• DOM HTML

• DOM Range

• HTML5 Selection

IE9 Programming Model

Page 23: Ie9 overview

Microsoft Confidential

DOM Events

Demo

Page 24: Ie9 overview

IE9 and Performance

HW-Accelerated HTML5

Page 25: Ie9 overview

Microsoft Confidential

Page load in slow motion

Demo

Page 26: Ie9 overview

Scenario – Wall Street Journal

Starting with Bing

Page 27: Ie9 overview

Scenario – Wall Street Journal

Blank Background

Page 28: Ie9 overview

Scenario – Wall Street Journal

Initial HTML

Page 29: Ie9 overview

Scenario – Wall Street Journal

Heading Appears

Page 30: Ie9 overview

Scenario – Wall Street Journal

Initial Content

Page 31: Ie9 overview

Scenario – Wall Street Journal

Right Column Lays Out

Page 32: Ie9 overview

Scenario – Wall Street Journal

Media Appears

Page 33: Ie9 overview

Scenario – Wall Street Journal

Customized Content

Page 34: Ie9 overview

Scenario – Wall Street Journal

Advertisements

Page 35: Ie9 overview

Five Popular News Sites

  TotalSize

NumberElement

s

CSS Rules

ImageFiles

Script Files

ScriptLines

ScriptLibs

News Site #1 3280kb 8662 1293 137 21 14,216

News Site #2 961kb 820 2964 44 16 3,812

News Site #3 300kb 1187 1366 26 4 9,481

News Site #4 1462kb 4257 893 76 21 11,988

News Site #5 2981kb 3578 1917 88 19 20,722

JQuery Prototype MooTools Scriptaculous Other (JS Lib)

YUI

Page 36: Ie9 overview

Five Popular News Sites – The best

  TotalSize

NumberElement

s

CSS Rules

ImageFiles

Script Files

ScriptLines

ScriptLibs

News Site #1 3280kb 8662 1293 137 21 14,216

News Site #2 961kb 820 2964 44 16 3,812

News Site #3 300kb 1187 1366 26 4 9,481

News Site #4 1462kb 4257 893 76 21 11,988

News Site #5 2981kb 3578 1917 88 19 20,722

JQuery Prototype MooTools Scriptaculous Other (JS Lib)

YUI

Page 37: Ie9 overview

Five Popular News Sites – The worst

  TotalSize

NumberElement

s

CSS Rules

ImageFiles

Script Files

ScriptLines

ScriptLibs

News Site #1 3280kb 8662 1293 137 21 14,216

News Site #2 961kb 820 2964 44 16 3,812

News Site #3 300kb 1187 1366 26 4 9,481

News Site #4 1462kb 4257 893 76 21 11,988

News Site #5 2981kb 3578 1917 88 19 20,722

JQuery Prototype MooTools Scriptaculous Other (JS Lib)

YUI

Page 38: Ie9 overview

LayoutRenderingParsingDOMNetworkingFormatsJscript

LayoutRenderingParsingDOMNetworkingFormatsJscript

Time spent in IE subsystems differs greatly by site function and coding pattern

News site 1

News site 2

Performance is multi-dimensional

Page 39: Ie9 overview

WSJ – Before and After

43

IE8

IE9

IE8

IE9

Page 40: Ie9 overview

Microsoft Confidential

Performance

Demo

Page 41: Ie9 overview

Web API Usage 7000 top sites

API (by rank)1 50 700

Nu

mb

er

of

sit

es

7000

0

API Rank Percent of Sites

indexOf 1 94%

getElementById 13 80%

addEventListener 27 65%

getComputedStyle 62 26%

Page 42: Ie9 overview

JavaScript PerformanceWebKit.org’s SunSpider v0.9 Benchmark

Dell OptiPlex, Microsoft Windows 7 Enterprise 6.1.7600, 64-bit, 3.0GHz Intel Core 2 Duo, 4GB RAM, Intel Integrated Video

IE8

Opera

10.

10

IE9

PDC 2

009

Demo

Firef

ox 3

.6

Firef

ox 3

.7 A

lpha

2 P

rere

leas

e

IE9

Plat

form

Pre

view (1

.9.7

745.

6019

)

Safa

ri 4.

0.5

(531

.22.

7)

Chrom

e 4.

0.24

9.89

Chrom

e 5.

0.34

2.2

(dev

)

Opera

10.

5 0

500

1000

1500

2000

2500

3000

3500

4000

45003826

2492

834 700 610 599 408 374 293 285

Milliseco

nds

Page 43: Ie9 overview

GPU on Every Machine

Page 44: Ie9 overview

High Performance

JavaScript execution

DOM interaction and layout

GPU-powered rendering

Cross-browser Interoperability

HTML5 markup

CSS3 markup

DOM programmability

Graphics Capabilities

Alpha color & opacity

Round corners & multiple backgrounds

HTML5-integrated SVG graphics

Media Capabilities

<video> element with MPEG-4/H.264

<audio> element with MP3/AAC

GPU-Powered HTML5

Page 45: Ie9 overview

Microsoft Confidential

Flying Images

Demo

Page 46: Ie9 overview

Flying Images – One Animation

50

IE8

IE9

IE8

IE9

Page 47: Ie9 overview

blogs.msdn.com/IE

www.ietestdrive.com

blogs.msdn.com/Giorgio

Resources

Page 48: Ie9 overview

Q&A