HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2765

File a bug

SVNBugCommentTime (UTC)
2765Filling in the rendering section: <input type=text>; also, some tweaks to <img>'s requirements.2009-02-06 23:49
Index: source
===================================================================
--- source	(revision 2764)
+++ source	(revision 2765)
@@ -16221,6 +16221,14 @@
   conditions in the previous paragraph are not met, then the image is
   <em>not</em> <i>available</i>.</p>
 
+  <p class="note">An image might be <i>available</i> in one
+  <span>view</span> but not another. For instance, a
+  <code>Document</code> could be rendered by a screen reader providing
+  a speech synthesis view of the output of a Web browser using the
+  screen media. In this case, the image would be <i>available</i> in
+  the Web browser's screen view, but <em>not</em> <i>available</i> in
+  the screen reader's view.</p>
+
   <p>Whether the image is fetched successfully or not (e.g. whether
   the response code was a 2xx code <span
   title="concept-http-equivalent-codes">or equivalent</span>) must be
@@ -16324,6 +16332,11 @@
     <p>The image might be a key part of the content, and there is no
     textual equivalent of the image available.</p>
 
+    <p class="note">In a conforming document, the absence of the <code
+    title="attr-img-alt">alt</code> attribute indicates that the image
+    is a key part of the content but that a textual replacement for
+    the image was not available when the image was generated.</p>
+
     <p>If the image is <i>available</i>, the element
     <span>represents</span> the image specified by the <code
     title="attr-img-src">src</code> attribute.</p>
@@ -17080,10 +17093,9 @@
     <p>When it is possible for detailed alternative text to be
     provided, for example if the image is part of a series of
     screenshots in a magazine review, or part of a comic strip, or is
-    a photograph in a blog entry about that photograph, text that
-    conveys can serve as a substitute for the image must be given as
-    the contents of the <code title="attr-img-alt">alt</code>
-    attribute.</p>
+    a photograph in a blog entry about that photograph, text that can
+    serve as a substitute for the image must be given as the contents
+    of the <code title="attr-img-alt">alt</code> attribute.</p>
 
     <div class="example">
 
@@ -55273,8 +55285,8 @@
   instance of the tokeniser (<span>fragment case</span>), or, if the
   <span>content model flag</span> is set to the RCDATA or CDATA states
   and the next few characters do not match the tag name of the last
-  start tag token emitted (compared in an <span>ASCII case
-  insensitive</span> manner), or if they do but they are not
+  start tag token emitted (compared in an <span>ASCII
+  case-insensitive</span> manner), or if they do but they are not
   immediately followed by one of the following characters:</p>
 
   <ul class="brief">
@@ -62201,9 +62213,11 @@
   line-height: initial;
   white-space: initial;
   text-align: initial;
-}</pre>
+}
 
+input { box-sizing: border-box; }</pre>
 
+
   <h4>The <code>hr</code> element</h4>
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
@@ -62273,7 +62287,7 @@
   over the top border edge of the <code>fieldset</code> element. If
   the <code>legend</code> element in question has an <code
   title="attr-legend-align">align</code> attribute, and its value is
-  an <span>ASCII case insensitive</span> match for one of the strings
+  an <span>ASCII case-insensitive</span> match for one of the strings
   in the first column of the following table, then the
   <code>legend</code> is expected to be rendered horizontally aligned
   over the border edge in the position given in the corresponding cell
@@ -62383,13 +62397,14 @@
   width is necessary to render the text on one line.</p>
 
   <p>The icons mentioned above are expected to be relatively small so
-  as not to disrupt most text but be easily clickable, for instance 16
-  pixels by 16 pixels square, or 1em by 1em if the images are
-  scalable. The images are intended to indicate to the user that they
-  can be used to get to whatever options the UA provides for images,
-  and, where appropriate, are expected to provide access to the
-  context menu that would have come up if the user interacted with the
-  actual image.</p>
+  as not to disrupt most text but be easily clickable. In a visual
+  environment, for instance, icons could be 16 pixels by 16 pixels
+  square, or 1em by 1em if the images are scalable. In an audio
+  environment, the icon could be a short bleep. The icons are intended
+  to indicate to the user that they can be used to get to whatever
+  options the UA provides for images, and, where appropriate, are
+  expected to provide access to the context menu that would have come
+  up if the user interacted with the actual image.</p>
 
   <hr>
 
@@ -62621,21 +62636,62 @@
 
 
 
-
   <h4>The <code>input</code> element as a text entry widget</h4>
 
-  <p class="XXX">When an <code>input</code> element's <code
+  <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
+input { binding: <i title="">textfield</i>; }
+input[type=password] { binding: <i title="">textfield-password</i>; }
+/* later rules override this for other values of type="" */</pre>
+
+  <p>When the <i title="">textfield</i> binding applies to an
+  <code>input</code> element whose <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-text">Text</span>, <span
   title="attr-input-type-search">Search</span>, <span
-  title="attr-input-type-url">URL</span>, <span
-  title="attr-input-type-email">E-mail</span>, or <span
-  title="attr-input-type-password">Password</span> state, ...</p>
-  <!-- datalist presentation -->
+  title="attr-input-type-url">URL</span>, or <span
+  title="attr-input-type-email">E-mail</span> state, the element is
+  expected to render as an 'inline-block' box rendered as a text
+  field.</p>
 
-  <!-- size: http://mxr.mozilla.org/mozilla-central/ident?i=CalcIntrinsicSize -->
+  <p>When the <i title="">textfield</i> binding applies, to an
+  <code>input</code> element whose <code
+  title="attr-input-type">type</code> attribute is in the <span
+  title="attr-input-type-password">Password</span> state, the element
+  is expected to render as an 'inline-block' box rendered as a text
+  field whose contents are obscured.</p>
 
+  <p>If an <code>input</code> element whose <code
+  title="attr-input-type">type</code> attribute is in one of the above
+  states has a <code title="attr-input-size">size</code> attribute,
+  and parsing that attribute's value using the <span>rules for parsing
+  non-negative integers</span> doesn't generate an error, then the
+  user agent is expected to use the attribute as a
+  <span>presentational hints</span> for the 'width' property on the
+  element, with the value obtained from applying the <span>converting
+  a character width to pixels</span> algorithm to the value of the
+  attribute.</p>
 
+  <p>If an <code>input</code> element whose <code
+  title="attr-input-type">type</code> attribute is in one of the above
+  states does <em>not</em> have a <code
+  title="attr-input-size">size</code> attribute, then the user agent
+  is expected to act as if it had a user-agent-level style sheet rule
+  setting the 'width' property on the element to the value obtained
+  from applying the <span>converting a character width to
+  pixels</span> algorithm to the number 20.</p>
+
+  <p>The <dfn>converting a character width to pixels</dfn> algorithm
+  return <span>(<var title="">size-1</var>)&times;<var
+  title="">avg</var>&nbsp;+&nbsp;<var title="">max</var></span>, where
+  <var title="">size</var> is the character width to convert, <var
+  title="">avg</var> is the average character width of the primary
+  font for the element for which the algorithm is being run, and <var
+  title="">max</var> is the maximum character width of that same
+  font. (The element's 'letter-spacing' property does not affect the
+  result.)</p>
+
+
+
   <h4>The <code>input</code> element as domain-specific widgets</h4>
 
   <p class="XXX">When an <code>input</code> element's <code
@@ -63693,27 +63749,28 @@
   Smith, Geoffrey Garen, Geoffrey Sneddon, George Lund, H&aring;kon
   Wium Lie, Hans S. T&oslash;mmerhalt, Henri Sivonen, Henrik Lied,
   Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
-  Gon&ccedil;alves, J. King, Jacques Distler, James Graham, James
-  Justin Harrell, James M Snell, James Perrett, Jan-Klaas Kollhof,
-  Jason White, Jasper Bryant-Greene, Jed Hartman, Jeff Cutsinger, Jeff
-  Schiller, Jeff Walden, Jens Bannmann, Jens Fendler, Jeroen van der
-  Meer, Jim Jewett, Jim Meehan, Joe Clark, John Fallows, Joseph
-  Kesselman, Jjgod Jiang, Joel Spolsky, Johan Herland, John Boyer,
-  John Bussjaeger, John Harding, Johnny Stenback, Jon Gibbins, Jon
-  Perlow, Jonathan Worent, Jorgen Horstink, Josh Levenberg, Joshua
-  Randall, Jukka K. Korpela, Jules Cl&eacute;ment-Ripoche, Julian
-  Reschke, Kai Hendry, Kartikaya Gupta, <!-- Keryx Web, = Lars Gunther
-  --> Kornel Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA
-  Takeshi), Kristof Zelechovski, Kyle Hofmann, Lachlan Hunt, Larry
-  Page, Lars Gunther, Laura L. Carlson, Laura Wisewell, Laurens Holst,
-  Lee Kowalkowski, Leif Halvard Silli, Lenny Domnitser, L&eacute;onard
-  Bouchet, Leons Petrazickis, Logan<!-- on moz irc -->, Loune, Maciej
-  Stachowiak, Magnus Kristiansen<!-- Dashiva -->, Maik Merten, Malcolm
-  Rowe, Mark Nottingham, Mark Rowe<!--bdash-->, Mark Schenk, Martijn
-  Wargers, Martin Atkins, Martin D&uuml;rst, Martin Honnen, Masataka
-  Yakura, Mathieu Henri, Matthew Gregan, Matthew Mastracci, Matthew
-  Raymond, Matthew Thomas, Mattias Waldau, Max Romantschuk, Michael
-  'Ratt' Iannarelli, Michael A. Nachbaur, Michael A. Puls
+  Gon&ccedil;alves, J. King, Jacques Distler, James Craig, James
+  Graham, James Justin Harrell, James M Snell, James Perrett,
+  Jan-Klaas Kollhof, Jason White, Jasper Bryant-Greene, Jed Hartman,
+  Jeff Cutsinger, Jeff Schiller, Jeff Walden, Jens Bannmann, Jens
+  Fendler, Jeroen van der Meer, Jim Jewett, Jim Meehan, Joe Clark,
+  John Fallows, Joseph Kesselman, Jjgod Jiang, Joel Spolsky, Johan
+  Herland, John Boyer, John Bussjaeger, John Harding, Johnny Stenback,
+  Jon Gibbins, Jon Perlow, Jonathan Worent, Jorgen Horstink, Josh
+  Levenberg, Joshua Randall, Jukka K. Korpela, Jules
+  Cl&eacute;ment-Ripoche, Julian Reschke, Kai Hendry, Kartikaya Gupta,
+  <!-- Keryx Web, = Lars Gunther --> Kornel Lesinski,
+  &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof
+  Zelechovski, Kyle Hofmann, Lachlan Hunt, Larry Page, Lars Gunther,
+  Laura L. Carlson, Laura Wisewell, Laurens Holst, Lee Kowalkowski,
+  Leif Halvard Silli, Lenny Domnitser, L&eacute;onard Bouchet, Leons
+  Petrazickis, Logan<!-- on moz irc -->, Loune, Maciej Stachowiak,
+  Magnus Kristiansen<!-- Dashiva -->, Maik Merten, Malcolm Rowe, Mark
+  Nottingham, Mark Rowe<!--bdash-->, Mark Schenk, Martijn Wargers,
+  Martin Atkins, Martin D&uuml;rst, Martin Honnen, Masataka Yakura,
+  Mathieu Henri, Matthew Gregan, Matthew Mastracci, Matthew Raymond,
+  Matthew Thomas, Mattias Waldau, Max Romantschuk, Michael 'Ratt'
+  Iannarelli, Michael A. Nachbaur, Michael A. Puls
   II<!--Shadow2531-->, Michael Carter, Michael Gratton, Michael
   Nordman, Michael Powers, Michael(tm) Smith, Michel Fortin, Michiel
   van der Blonk, Mihai &#x015E;ucan<!-- from ROBO Design -->, Mike

|