Ie9 dev overview (300) beta

50
Internet Explorer 9: Developer Overview Beta Presenter Name Presenter Title

description

 

Transcript of Ie9 dev overview (300) beta

Page 1: Ie9 dev overview (300) beta

Internet Explorer 9: Developer Overview BetaPresenter NamePresenter Title

Page 2: Ie9 dev overview (300) beta

PAGE 2

Agenda

History and Evolution

Fast

Clean

Interoperable

Page 3: Ie9 dev overview (300) beta

History and Evolution

Page 4: Ie9 dev overview (300) beta

PAGE 4

Page 5: Ie9 dev overview (300) beta

PAGE 5

Page 6: Ie9 dev overview (300) beta

PAGE 6

Page 7: Ie9 dev overview (300) beta

PAGE 7

Page 8: Ie9 dev overview (300) beta

PAGE 8

Page 9: Ie9 dev overview (300) beta

All-Around Fast

Page 10: Ie9 dev overview (300) beta

PAGE 10

Multi-System Performance

Page 11: Ie9 dev overview (300) beta

PAGE 11

WebKit SunSpider JavaScript Benchmark Results

Page 12: Ie9 dev overview (300) beta

PAGE 12

The JavaScript Engine

Source Code

Parser AST InterpreterByteCod

e

Foreground

Page 13: Ie9 dev overview (300) beta

PAGE 13

Source Code Parser AST InterpreterByteCode

Foreground

New JavaScript Engine – “Chakra”

BackgroundBackground Compiler

Native Code

Compiled JavaScript In The Background Using Multiple Cores

Page 14: Ie9 dev overview (300) beta

Flying Images

Demo

Page 15: Ie9 dev overview (300) beta

PAGE 15

Flying Images – One Animation

IE8

IE9

Page 16: Ie9 dev overview (300) beta

PAGE 16

Using The Full Power of Your PC

Page 17: Ie9 dev overview (300) beta

PAGE 17

Everyone Has a GPU

Page 18: Ie9 dev overview (300) beta

PAGE 18

1 2 3 4 5 6 7 8

Windows Experience Index Results - GPU

Windows Experience IndexGraphics Scores of Vista and Win7 Users

4% 15% 32% 27% 12% 10%

Page 19: Ie9 dev overview (300) beta

PAGE 19

window.msPerformance

<script type="text/javascript"> var w = window; var navStart = w.msPerformance.timing.navigationStart + "ms"; var navStartTime = Date(w.msPerformance.timing.navigationStart);</script>

A new set of Performance Metrics integrated at the DOMBrowser interoperable way to measure performance

Page 20: Ie9 dev overview (300) beta

With a focus on your sites

Clean

Page 21: Ie9 dev overview (300) beta

PAGE 21

Page 22: Ie9 dev overview (300) beta

PAGE 22

Page 23: Ie9 dev overview (300) beta

PAGE 23

Page 24: Ie9 dev overview (300) beta

Pinning Demo

Page 25: Ie9 dev overview (300) beta

PAGE 25

Enhance your Pinned Site

Pinned Site mode requires

no changes to your site

Getting Started with Pinned Sites

Provide custom information

Add the site as a Pinned Site

programmatically

Customize the icon

Define Jump List tasks

Add additional Jump List items in a

custom list

Show thumbbar buttons

Page 26: Ie9 dev overview (300) beta

Customize Your Pinned Site

26

<meta name="application-name" content="Site Name" />

<meta name="msapplication-tooltip" content="Start the Pinned Site" />

<meta name="msapplication-starturl" content="http://example.com/start.htm" />

Use meta elements to provide specific information

Page 27: Ie9 dev overview (300) beta

Programmatically Pinning Your Site

27

if (window.external.msIsSiteMode) { if (window.external.msIsSiteMode()) { // we are already in site mode } else { // add site to the Programs menu window.external.msAddSiteMode() }}

Page 28: Ie9 dev overview (300) beta

Adding Icon Overlays

28

window.external.msSiteModeSetIconOverlay( 'http://host/overlay1.ico','Overlay 1');

window.external.msSiteModeClearIconOverlay();

Provide users with notifications or progress updates

Page 29: Ie9 dev overview (300) beta

Adding Jump Lists

29

<meta name="msapplication-task" content="name=Task 1;action-uri=http://host/Page1.htm; icon-uri=http://host/icon1.ico"/>

<meta name="msapplication-task" content="name=Task 2;action-uri=http://host2/Page2.htm; icon-uri=http://host2/icon2.ico"/>

Windows 7 integration

Page 30: Ie9 dev overview (300) beta

With the same markup

Interoperable

Page 31: Ie9 dev overview (300) beta

PAGE 31

Web API Usage

7000 top sites

API (by rank)1 50 700

Num

ber o

f site

s

7000

0

API Rank Percent of Sites

indexOf 1 94%

getElementById 13 80%

addEventListener 27 65%

getComputedStyle 62 26%

Page 32: Ie9 dev overview (300) beta

PAGE 32

The HTML Working Group

Working With Standards Bodies

Member of many W3C

Working Groups

Leading the W3C HTML5 Testing Task

Force

40 W3C Member Organizations

411 group participants

280 invited experts

9 mailing lists

~4000 emails on public-html

Page 33: Ie9 dev overview (300) beta

PAGE 33

Defining Same Markup

Page 34: Ie9 dev overview (300) beta

PAGE 34

Internet Explorer Testing Center

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

Page 35: Ie9 dev overview (300) beta

PAGE 35

HTML5: A Quick OverviewCommonly used to refer to modern open web standards like HTML5, CSS3, and more.

Adds new rich media and graphics support (canvas, video, audio, inline SVG…)

Standardizes behavior for browser vendors, enabling same markup.

The W3C HTML5 specification is still a draft, it’s over 1100 pages and keeps evolving.

Page 36: Ie9 dev overview (300) beta

PAGE 36

GPU-Powered HTML5 Means…

Canvas

SVG 1.1 2nd Edition, Full

CSS3 Backgrounds & Borders Module

CSS3 Color ModelsRGBA, HSLA, Opacity

CSS3 Media Queries

Web Fonts

Hardware Accelerated <video>

Hardware Accelerated <audio>

Page 37: Ie9 dev overview (300) beta

PAGE 38

<canvas id="myCanvas" width="200" height="200"> Your browser doesn’t support Canvas, sorry.</canvas>

<script type="text/javascript"> var example = document.getElementById("myCanvas"); var context = example.getContext("2d"); context.fillStyle = "rgb(255,0,0)"; context.fillRect(30, 30, 50, 50); </script>

Canvas

A block element that allows developers to draw 2d graphics using JavaScript

Methods for drawing include: paths, boxes, circles, text and rasterized images

Page 38: Ie9 dev overview (300) beta

PAGE 39

Create and draw 2D vector graphics using XML Vector images are composed of shapes instead of pixels Based on the SVG 1.1 2nd Edition Full specification

Support for: Full DOM access to SVG elements Document structure, scripting, styling, paths, shapes, colors,

transforms, gradients, patterns, masking, clipping, markers, linking and views

Scalable Vector Graphics (SVG)

<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 39: Ie9 dev overview (300) beta

PAGE 40

HTML5 <video>

Support for the 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

Hardware accelerated, GPU-based decoding

Attributes src – specifies the location to pull the source file

autoplay – if present starts playing as soon as it’s ready

controls – if present displays controls

preload – if present loads source at page load

loop – if present loops back to the beginning of the video

height & width – specifies the height & width of the player

<video src="video.mp4" id="videoTag" width="640px" height="360px"> <!-- Only shown when browser doesn’t support video --> <!-- You Could Embed Flash or Silverlight Video Here --></video>

Page 40: Ie9 dev overview (300) beta

PAGE 41

<audio src="audio.mp3" id="audioTag" autoplay controls> <!-- Only shown when browser doesn’t support audio --> <!-- You could embed Flash or Silverlight audio here --></video>

HTML5 <audio>

Support for the HTML5 <audio> element Industry-standard MP3 and AAC audio Fully scriptable via the DOM

Attributes src – specifies the location to pull the source file autoplay – if present starts playing as soon as it’s ready controls – if present displays controls preload – if present loads source at page load

Page 41: Ie9 dev overview (300) beta

PAGE 42

<style type="text/css"> @font-face { font-family:MyFontName; src: url('FontFile.woff'); } </style>

<div style="font: 24pt MyFontName, sans-serif;"> This will render using MyFontName in FontFile.woff</div>

WOFF Fonts & @font-face

No longer limited to the “web safe” font list! Web Open Font Format allows you to package and deliver fonts as

needed, per site Designed for web use with the @font-face declaration A simple repackaging of OpenType or TrueType font data From the W3C Fonts Working Group

Page 42: Ie9 dev overview (300) beta

PAGE 43

CSS3 Media Queries

Selectively style page based on properties of the media

<link href=“mobile.css" rel="stylesheet" media="screen and (max-width:480px)" type=“ text/css" /> <link href=“netbook.css" rel="stylesheet" media="screen and (min-width:481px) and (max- width: 1024px)" type="text/css" /> <link href=“laptop.css" rel="stylesheet" media="screen and (min-width:1025px)" type="text/css" />

Page 43: Ie9 dev overview (300) beta

PAGE 44

div.top { background-color: rgba(0, 0, 0, 0.5); color: azure;}div.bottom { background-color: hlsa(0, 0%, 0%, 0.5); color: cornsilk;}

CSS3 Colors

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

CSS3 Color Keywords Full support for CSS3 color keywords Can be used with any property that takes the color property

Page 44: Ie9 dev overview (300) beta

PAGE 45

CSS3 Backgrounds & Borders

CSS3 Backgrounds and Borders Round corners with the border-radius property Multiple background images per element box-shadow property on block elements

div { border-radius: 152px 304px 228px 152px; border-style: double; border-width: 42px; padding: 12px;}

Page 45: Ie9 dev overview (300) beta

PAGE 46

DOM and JavaScript Features

addEventListener DOMContentLoaded

Full DOM Level 2 and Level 3 Event Support

New ECMAScript 5 Features

DOM Style

DOM Core

DOM Traversal and Range

HTML5 and XHTML Parsing Enhancements

getComputedStyle(element, pseudoElement)

getSelection()

getElementsByClassName(class)

Page 46: Ie9 dev overview (300) beta

PAGE 47

F12 Developer Tools

A built in, visual interface to the Document Object Model

Fast experimentation

New for Internet Explorer 9

Network inspectionUA String PickerConsole TabSVG Support

Page 47: Ie9 dev overview (300) beta

PAGE 48

Internet Explorer 9

All-around Fast Clean,with a focus on your websites

Interoperable with same

markup

Uses the full power of yourPC to provide GPU

powered HTML5 andplatform enhancements

including Chakra, thenew JavaScript

engine.

A clean, streamlined,speedier interface thatputs the focus on yoursites, rather than the

browser.

Improved standardssupport to enable“same markup”across browsers.

Page 48: Ie9 dev overview (300) beta

PAGE 49

Internet Explorer 9 Beta: Now Available

Migrate your applications off

Internet Explorer 6

Develop for standards first!

Download and install the Internet

Explorer 9 Betaand test your

site!

http://msdn.com/ieLearn more at…

Page 49: Ie9 dev overview (300) beta

Questions

Page 50: Ie9 dev overview (300) beta

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Internet Explorer and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after

the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.