2Dapi; hixie: Redefine getContext() so that the handling of multple context types is defined. (whatwg r5227)

2Dapi; hixie: Redefine getContext() so that the handling of multple
context types is defined. (whatwg r5227)

http://dev.w3.org/cvsweb/html5/2dcontext/Overview.html?r1=1.54&r2=1.55&f=h
http://html5.org/tools/web-apps-tracker?from=5226&to=5227

===================================================================
RCS file: /sources/public/html5/2dcontext/Overview.html,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- Overview.html 30 Jul 2010 01:37:52 -0000 1.54
+++ Overview.html 2 Aug 2010 22:17:08 -0000 1.55
@@ -308,7 +308,7 @@
 
    <h1>HTML Canvas 2D Context</h1>
    <h2 class="no-num no-toc" id="generatedID"></h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-30-july-2010">Editor's Draft 30 July 2010</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-2-august-2010">Editor's Draft 2 August 2010</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/2dcontext/">http://www.w3.org/TR/2dcontext/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -403,7 +403,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 30 July 2010 Editor's Draft.
+  This specification is the 2 August 2010 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><!-- (this text is from the RDFa+HTML spec --><p>This specification is an extension to the HTML5 language. All
@@ -439,18 +439,13 @@
 <!--end-toc--><hr><h2 id="conformance-requirements"><span class="secno">1 </span>Conformance requirements</h2><p>This specification is an HTML specification. All the conformance
   requirements, conformance classes, definitions, dependencies,
   terminology, and typographical conventions described in the core
-  HTML5 specification apply to this specification. <a href="#refsHTML5">[HTML5]</a><div class="impl">
+  HTML5 specification apply to this specification. <a href="#refsHTML5">[HTML5]</a><p>This specification defines the <dfn id="canvas-context-2d" title="canvas-context-2d"><code>2d</code></dfn> context type, whose
+  API is implemented using the <code><a href="#canvasrenderingcontext2d">CanvasRenderingContext2D</a></code>
+  interface.<div class="impl">
 
-  
   <p>When the <code title="dom-canvas-getContext">getContext()</code>
-  method of a <code>canvas</code> element is invoked with <dfn id="canvas-context-2d" title="canvas-context-2d"><code>2d</code></dfn> as the argument, a
-  <code><a href="#canvasrenderingcontext2d">CanvasRenderingContext2D</a></code> object must be returned.</p>
-  
-
-  <p>There is only one <code><a href="#canvasrenderingcontext2d">CanvasRenderingContext2D</a></code> object
-  per canvas, so calling the <code title="dom-canvas-getContext">getContext()</code> method with the
-  <code title="canvas-context-2d"><a href="#canvas-context-2d">2d</a></code> argument a second time
-  must return the same object.</p>
+  method of a <code>canvas</code> element is is to <span title="getContext-return">return a new object for the <var title="">contextId</var></span> <code title="canvas-context-2d"><a href="#canvas-context-2d">2d</a></code>, the user agent must return a
+  new <code><a href="#canvasrenderingcontext2d">CanvasRenderingContext2D</a></code> object.</p>
 
   </div><p>The 2D context represents a flat Cartesian surface whose origin
   (0,0) is at the top left corner, with the coordinate space having

Received on Monday, 2 August 2010 22:17:48 UTC