hixie: Try to explain type=image better. (whatwg r6433)

hixie: Try to explain type=image better. (whatwg r6433)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5135&r2=1.5136&f=h
http://html5.org/tools/web-apps-tracker?from=6432&to=6433

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5135
retrieving revision 1.5136
diff -u -d -r1.5135 -r1.5136
--- Overview.html 12 Aug 2011 20:19:10 -0000 1.5135
+++ Overview.html 12 Aug 2011 21:39:29 -0000 1.5136
@@ -35131,7 +35131,10 @@
   or alternatively a button from which the user can submit the
   form. The element is a <a href="#concept-button" title="concept-button">button</a>,
   specifically a <a href="#concept-submit-button" title="concept-submit-button">submit
-  button</a>.<hr><p>The image is given by the <dfn id="attr-input-src" title="attr-input-src"><code>src</code></dfn> attribute. The <code title="attr-input-src"><a href="#attr-input-src">src</a></code> attribute must be present, and
+  button</a>.<p class="note">The coordinate is sent to the server <a href="#constructing-the-form-data-set" title="constructing the form data set">during form submission</a>
+  by sending two entries for the element, derived from the name of the
+  control but with "<code title="">.x</code>" and "<code title="">.y</code>" appended to the name with the <var title="">x</var> and <var title="">y</var> components of the
+  coordinate respectively.<hr><p>The image is given by the <dfn id="attr-input-src" title="attr-input-src"><code>src</code></dfn> attribute. The <code title="attr-input-src"><a href="#attr-input-src">src</a></code> attribute must be present, and
   must contain a <a href="#valid-non-empty-url-potentially-surrounded-by-spaces">valid non-empty URL potentially surrounded by
   spaces</a> referencing a non-interactive, optionally animated,
   image resource that is neither paged nor scripted.<div class="impl">
@@ -35315,7 +35318,18 @@
   </div><p class="note">Many aspects of this state's behavior are similar to
   the behavior of the <code><a href="#the-img-element">img</a></code> element. Readers are encouraged
   to read that section, where many of the same requirements are
-  described in more detail.<h6 id="reset-button-state"><span class="secno">4.10.7.1.21 </span><dfn title="attr-input-type-reset">Reset Button</dfn> state</h6><div class="impl">
+  described in more detail.<div class="example">
+
+   <p>Take the following form:</p>
+
+   <pre>&lt;form action="process.cgi"&gt;
+ &lt;input type=image src=map.png name=where&gt;
+&lt;/form&gt;</pre>
+
+   <p>If the user clicked on the image at coordinate (127,40) then the
+   URL used to submit the form would be "<code title="">process.cgi?where.x=127&amp;where.y=40</code>".</p>
+
+  </div><h6 id="reset-button-state"><span class="secno">4.10.7.1.21 </span><dfn title="attr-input-type-reset">Reset Button</dfn> state</h6><div class="impl">
 
   <p>When an <code><a href="#the-input-element">input</a></code> element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is in the <a href="#reset-button-state" title="attr-input-type-reset">Reset Button</a> state, the rules
   in this section apply.</p>

Received on Friday, 12 August 2011 21:39:45 UTC