- From: Simon Pieters via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 02 Mar 2012 13:38:27 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html4-differences In directory hutz:/tmp/cvs-serv28435 Modified Files: Overview.src.html Log Message: update APIs Index: Overview.src.html =================================================================== RCS file: /sources/public/html5/html4-differences/Overview.src.html,v retrieving revision 1.147 retrieving revision 1.148 diff -u -d -r1.147 -r1.148 --- Overview.src.html 2 Mar 2012 11:25:05 -0000 1.147 +++ Overview.src.html 2 Mar 2012 13:38:25 -0000 1.148 @@ -972,35 +972,111 @@ - <h2 id="apis">APIs</h2> + <h2 id="apis">New APIs</h2> <p>HTML5 introduces a number of APIs that help in creating Web applications. These can be used together with the new elements introduced for applications:</p> <ul> - <li>An API for playing of video and audio which can be used with the new - <code data-anolis-spec=html>video</code> and <code data-anolis-spec=html>audio</code> elements.</li> + <li>Media elements (<code data-anolis-spec=html>video</code> and <code + data-anolis-spec=html>audio</code>) have APIs for controlling playback, + syncronising multiple media elements, and timed text tracks (e.g. + subtitles). - <li>An API for synchronozing text to media elements, for e.g. captions and subtitles. + <li>An API for form constraint validation (e.g. the <code + data-anolis-spec=html + title=dom-cva-setcustomvalidity>setCustomValidity()</code> method). - <li>An API that enables offline Web applications.</li> + <li>An API for <span data-anolis-spec=html + title=concept-command>commands</span> that the user can invoke (used + together with the <code data-anolis-spec=html>command</code> element among + others). - <li>An API that allows a Web application to register itself for - certain protocols or media types.</li> + <li>An API that enables offline Web applications, with an <span + data-anolis-spec=html>application cache</span>.</li> - <li>Editing API in combination with a new global - <code data-anolis-spec=html title=attr-contenteditable>contenteditable</code> attribute.</li> + <li>An API that allows a Web application to register itself for certain + protocols or media types, using <code data-anolis-spec=html + title=dom-navigator-registerProtocolHandler>registerProtocolHandler()</code> + and <code data-anolis-spec=html + title=dom-navigator-registerContentHandler>registerContentHandler()</code> + .</li> - <li>Drag & drop API in combination with a <code data-anolis-spec=html title=attr-draggable>draggable</code> + <li>Editing API in combination with a new global <code + data-anolis-spec=html title=attr-contenteditable>contenteditable</code> attribute.</li> - <li>API that exposes the history and allows pages to add to it to prevent - breaking the back button.</li> + <li>Drag & drop API in combination with a <code data-anolis-spec=html + title=attr-draggable>draggable</code> attribute.</li> + + <li>An API that exposes the components of the document's URL and allows + scripts to navigate, redirect and reload (the <code + data-anolis-spec=html>Location</code> interface). + + <li>An API that exposes the session history and allows scripts to update + the document's URL without actually navigating, so that applications don't + need to abuse the fragment component for "Ajax-style" navigation (the + <code data-anolis-spec=html>History</code> interface). + + <li>An API for base64 conversion (<code data-anolis-spec=html + title=dom-windowbase64-atob>atob()</code> and <code data-anolis-spec=html + title=dom-windowbase64-btoa>btoa()</code> methods). + + <li>An API to schedule timer-based callbacks (<code data-anolis-spec=html + title=dom-windowtimers-settimeout>setTimeout()</code> and <code + data-anolis-spec=html + title=dom-windowtimers-setinterval>setInterval()</code>). + + <li>An API to prompt the user (<code data-anolis-spec=html + title=dom-alert>alert()</code>, <code data-anolis-spec=html + title=dom-confirm>confirm()</code>, <code data-anolis-spec=html + title=dom-prompt>prompt()</code>, <code data-anolis-spec=html + title=dom-showmodaldialog>showModalDialog()</code>). + + <li>An API for printing the document (<code data-anolis-spec=html + title=dom-print>print()</code>). + + <li>An API for handling search providers (<code data-anolis-spec=html + title=dom-external-addsearchprovider>AddSearchProvider()</code> and <code + data-anolis-spec=html + title=dom-external-issearchproviderinstalled>IsSearchProviderInstalled()</code>). + + <li>An API for simulating clicks and handling focus (<code + data-anolis-spec=html title=dom-click>click()</code>, <code + data-anolis-spec=html title=dom-focus>focus()</code>, <code + data-anolis-spec=html title=dom-blur>blur()</code>). + </ul> + + <p>WHATWG HTML has further APIs that are not in HTML5 but are separate specifications at the W3C: + + <ul> + <li>An API for microdata. + + <li>An API for immediate-mode bitmap graphics (the <code + data-anolis-spec=html title=canvas-context-2d>2d</code> context for the + <code data-anolis-spec=html>canvas</code> element). + <li>An API for cross-document messaging and channel messaging (<code + data-anolis-spec=html title=dom-window-postMessage>postMessage()</code> + and <code data-anolis-spec=html>MessageChannel</code>). - <h3 id="htmldocument-extensions">Extensions to + <li>An API for runnings scripts in the background (<code + data-anolis-spec=html>Worker</code> and <code + data-anolis-spec=html>SharedWorker</code>). + + <li>An API for client-side storage (<code data-anolis-spec=html + title=dom-localStorage>localStorage</code> and <code data-anolis-spec=html + title=dom-sessionStorage>sessionStorage</code>). + + <li>An API for bidirectional client-server communication (<code + data-anolis-spec=html>WebSocket</code>). + + <li>An API for server-to-client data push (<code data-anolis-spec=html>EventSource</code>). + </ul> + + <h3 id="document-extensions">Extensions to <code>Document</code></h3> <p>DOM Level 2 HTML had an <code>HTMLDocument</code> interface that
Received on Friday, 2 March 2012 13:38:33 UTC