120 likes | 289 Views
HTML5, part III – API, …. Štěpán Bechynský. Developer Evangelist Microsoft, Czech Republic. ECMAScript 5. Standard ECMA-262 http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf Test: http://test262.ecmascript.org /
E N D
HTML5, part III – API, … Štěpán Bechynský Developer Evangelist Microsoft, Czech Republic
ECMAScript5 • Standard ECMA-262 • http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf • Test: http://test262.ecmascript.org/ • Results: http://en.wikipedia.org/wiki/ECMAScript#Conformance_tests • New array methods • Enhanced object model • Other computational methods and functions • Strict mode
Data URI • Embedding data in the context of a web page • Most common is tiny image embedded in a web page • Standalone web pages with graphics
GeolocationAPI • Location based on IP address, Wi-Fi, GSM or GPS • User must confirm access to location
< audio>, < video> and Javascript • You can write your own audio or video player • Independent on “build-in” controls
Offline capabilities • Offline storage • localStorage • sessionStorage • Online and offlineevents • IndexedDB • Experimental plugin, http://html5labs.interoperabilitybridges.com/ • Doesn’t work on 64-bit
Web SocetsAPI • Experimental plugin, http://html5labs.interoperabilitybridges.com/ • Real-time duplex communication • Needs socket server • Internet Engineering Task Force (IETF)
File API • Experimental plugin, http://html5labs.interoperabilitybridges.com/ • Access to client computer file system
Developer Tools • Internet Explorer 9 Developer Tools • Visual Studio 2010 SP1 • Expression Web 4 SP1 • Fiddler
Silverlight vs. HTML5 • LOB applications • Datagrid • RIA Services • MVVM • Video • DRM • Smooth Streaming • Windows Phone 7 • Developer Tools
Resources • Books • Introducing HTML5 by Bruce Lawson & Remy Sharp • W3C • W3C HTML5 Specification – www.w3.org/TR/html5 • HTML5 Test Suite – test.w3.org/html/tests/reporting/report.htm • Validator –validator.w3.org/ • Microsoft Internet Explorer 9 • Engineering Blog – blogs.msdn.com/ie/ • Beauty Of The Web – www.beautyoftheweb.com/experience/ • IE Test Drive – www.ietestdrive.com • HTML5 Labs – html5labs.interoperabilitybridges.com/