[html5] r3506 - [] (0) Make <input type=image> a command also.

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 30 17:57:11 PDT 2009


Author: ianh
Date: 2009-07-30 17:57:10 -0700 (Thu, 30 Jul 2009)
New Revision: 3506

Modified:
   index
   source
Log:
[] (0) Make <input type=image> a command also.

Modified: index
===================================================================
--- index	2009-07-31 00:37:06 UTC (rev 3505)
+++ index	2009-07-31 00:57:10 UTC (rev 3506)
@@ -40361,7 +40361,7 @@
 
   <h5 id=using-the-input-element-to-define-a-command><span class=secno>4.11.6.3 </span><dfn title=input-command>Using the <code>input</code> element to define a command</dfn></h5>
 
-  <p>An <code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in one of the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a>, <a href=#reset-button-state title=attr-input-type-reset>Reset Button</a>, <a href=#button-state title=attr-input-type-button>Button</a>, <a href=#radio-button-state title=attr-input-type-radio>Radio Button</a>, or <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a> states <a href=#concept-command title=concept-command>defines a command</a>.</p>
+  <p>An <code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in one of the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a>, <a href=#reset-button-state title=attr-input-type-reset>Reset Button</a>, <a href=#image-button-state title=attr-input-type-image>Image Button</a>, <a href=#button-state title=attr-input-type-button>Button</a>, <a href=#radio-button-state title=attr-input-type-radio>Radio Button</a>, or <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a> states <a href=#concept-command title=concept-command>defines a command</a>.</p>
 
   <p>The <a href=#command-facet-type title=command-facet-Type>Type</a> of the command
   is "radio" if the <code title=attr-input-type><a href=#attr-input-type>type</a></code>
@@ -40397,8 +40397,13 @@
   <a href=#command-facet-hint title=command-facet-Hint>Hint</a> is the empty
   string.</p>
 
-  <p>There is no <a href=#command-facet-icon title=command-facet-Icon>Icon</a> for the
-  command.</p>
+  <p>If the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code>
+  attribute is in the <a href=#image-button-state title=attr-input-type-image>Image
+  Button</a> state, and the element has a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, and that attribute's
+  value can be successfully <a href=#resolve-a-url title="resolve a
+  url">resolved</a> relative to the element, then the <a href=#command-facet-icon title=command-facet-Icon>Icon</a> of the command is the
+  <a href=#absolute-url>absolute URL</a> obtained from resolving that attribute
+  that way. Otherwise, there is no <a href=#command-facet-icon title=command-facet-Icon>Icon</a> for the command.</p>
 
   <p>The <a href=#command-facet-accesskey title=command-facet-AccessKey>AccessKey</a> of the
   command is the element's <a href=#assigned-access-key>assigned access key</a>, if

Modified: source
===================================================================
--- source	2009-07-31 00:37:06 UTC (rev 3505)
+++ source	2009-07-31 00:57:10 UTC (rev 3506)
@@ -45370,6 +45370,7 @@
   title="attr-input-type">type</code> attribute is in one of the <span
   title="attr-input-type-submit">Submit Button</span>, <span
   title="attr-input-type-reset">Reset Button</span>, <span
+  title="attr-input-type-image">Image Button</span>, <span
   title="attr-input-type-button">Button</span>, <span
   title="attr-input-type-radio">Radio Button</span>, or <span
   title="attr-input-type-checkbox">Checkbox</span> states <span
@@ -45416,8 +45417,16 @@
   <span title="command-facet-Hint">Hint</span> is the empty
   string.</p>
 
-  <p>There is no <span title="command-facet-Icon">Icon</span> for the
-  command.</p>
+  <p>If the element's <code title="attr-input-type">type</code>
+  attribute is in the <span title="attr-input-type-image">Image
+  Button</span> state, and the element has a <code
+  title="attr-img-src">src</code> attribute, and that attribute's
+  value can be successfully <span title="resolve a
+  url">resolved</span> relative to the element, then the <span
+  title="command-facet-Icon">Icon</span> of the command is the
+  <span>absolute URL</span> obtained from resolving that attribute
+  that way. Otherwise, there is no <span
+  title="command-facet-Icon">Icon</span> for the command.</p>
 
   <p>The <span title="command-facet-AccessKey">AccessKey</span> of the
   command is the element's <span>assigned access key</span>, if




More information about the Commit-Watchers mailing list