HTML Standard Tracker

Filter

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
@@ -16214,20 +16214,28 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
   task">queued</span> by the <span>networking task source</span> while
   the image is being <span title="fetch">fetched</span> must update
   the presentation of the image appropriately.</p>
 
   <p>If the image was not fetched (e.g. because the UA's image support
   is disabled, or because the <code title="attr-img-src">src</code>
   attribute's value is an <i>ignored self-reference</i>), or if the
   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
   ignored when determining the image's type and whether it is a valid
   image.</p>
 
   <p class="note">This allows servers to return images with error
   responses, and have them displayed.</p>
 
   <p>The user agents should apply the <span title="Content-Type
@@ -16317,20 +16325,25 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
    </dd>
 
    <dt>If the <code title="attr-img-src">src</code> attribute is set
    and the <code title="attr-img-alt">alt</code> attribute is not</dt>
 
    <dd>
 
     <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>
 
     <p>If the image is not <i>available</i> or if the user agent is
     not configured to display the image, then the user agent should
     display some sort of indicator that there is an image that is not
     being rendered, and may, if requested by the user, or if so
     configured, or when required to provide contextual information in
     response to navigation, provide caption information for the image,
@@ -17073,24 +17086,23 @@ Noodliness do you wish to reach out for?&lt;/p>
 
   <dl>
 
    <dt>The general case</dt>
 
    <dd>
 
     <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">
 
      <p>A screenshot in a gallery of screenshots for a new OS, with
      some alternative text:</p>
 
      <pre>&lt;figure>
  <strong>&lt;img src="KDE%20Light%20desktop.png"
       alt="The desktop is blue, with icons along the left hand side in
            two columns, reading System, Home, K-Mail, etc. A window is
@@ -55266,22 +55278,22 @@ interface <dfn>MessageChannel</dfn> {
   </dl>
 
 
   <h5><dfn>Close tag open state</dfn></h5>
 
   <p>If the <span>content model flag</span> is set to the RCDATA or
   CDATA states but no start tag token has ever been emitted by this
   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">
    <li>U+0009 CHARACTER TABULATION</li>
    <li>U+000A LINE FEED (LF)</li>
    <li>U+000C FORM FEED (FF)</li>
    <!--<li>U+000D CARRIAGE RETURN (CR)</li>-->
    <li>U+0020 SPACE</li>
    <li>U+003E GREATER-THAN SIGN (&gt;)</li>
    <li>U+002F SOLIDUS (/)</li>
@@ -62194,21 +62206,23 @@ table { text-indent: initial; }</pre>
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
 table {
   font-weight: initial;
   font-style: initial;
   font-variant: initial;
   font-size: initial;
   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);
 
 hr { color: gray; border-style: inset; border-width: 1px; }</pre>
 
   <p>The following rules are also expected to apply, as
   <span>presentational hints</span>:</p>
@@ -62266,21 +62280,21 @@ fieldset {
   margin-left: 2px; margin-right: 2px;
   border: groove 2px ThreeDFace;
   padding: 0.35em 0.625em 0.75em;
 }</pre>
 
   <p>The first <code>legend</code> element child of a
   <code>fieldset</code> element, if any, is expected to be rendered
   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
   on the same row in the second column. If the attribute is absent or
   has a value that doesn't match any of the cases in the table, then
   the position is expected to be on the right if the 'direction'
   property on this element has a computed value of 'rtl', and on the
   left otherwise.</p>
 
   <table>
@@ -62376,27 +62390,28 @@ iframe { border: 2px inset; }</pre>
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-image">Image Button</span> state does not
   <span title="represents">represent</span> an image and the user
   agent does not expect this to change, the element is expected to be
   treated as a replaced element consisting of a button whose content
   is the element's alternative text. The intrinsic dimensions of the
   button are expected to be about one line in height and whatever
   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>
 
   <p>The following CSS rules are expected to apply when the
   <code>Document</code> is in <span>quirks mode</span>:</p>
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
 img[align=left] { margin-right: 3px; }
 img[align=right] { margin-left: 3px; }</pre>
@@ -62614,33 +62629,74 @@ details { binding: <i title="">details</i>; }</pre>
   is expected to have its 'height' set to 'auto'; when it does not,
   the later container is expected to have its 'height' set to 0.
 
 <!--
 XXX examples with screenshots
 http://mail.gnome.org/archives/usability/2006-June/msg00015.html
 -->
 
 
 
-
   <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>
+
+  <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>
 
-  <!-- size: http://mxr.mozilla.org/mozilla-central/ident?i=CalcIntrinsicSize -->
 
 
   <h4>The <code>input</code> element as domain-specific widgets</h4>
 
   <p class="XXX">When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-datetime">Date and Time</span>, <span
   title="attr-input-type-date">Date</span>, <span
   title="attr-input-type-month">Month</span>, <span
   title="attr-input-type-week">Week</span>, <span
@@ -63686,41 +63742,42 @@ interface <dfn>TimeoutHandler</dfn> {
   moz irc -->, David Baron, David Bloom, David Carlisle, David
   Flanagan, David H&aring;s&auml;ther, David Hyatt, David Smith, David
   Woolley, Dean Edridge, Debi Orton, Derek Featherstone, DeWitt
   Clinton, Dimitri Glazkov, dolphinling, Doron Rosenberg, Doug Kramer,
   Edward O'Connor, Edward Z. Yang, Eira Monstad, Elliotte Harold, Eric
   Carlson, Eric Law, Erik Arvidsson, Evan Martin, Evan Prodromou,
   fantasai, Felix Sasaki, Franck 'Shift' Qu&eacute;lain, Garrett
   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
   Brown, Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike
   Schinkel, Mike Shaver, Mikko Rantalainen, Neil Deakin, Neil Soiffer,
   Ojan Vafai, Olaf Hoffmann, Olav Junker Kj&aelig;r, Oliver Hunt, <!--
   Ozob = Kyle Hofmann --> Peter Karlsson, Peter Kasting, Philip
   J&auml;genstedt, Philip Taylor, Philip TAYLOR<!-- a different one
   -->, Rachid Finge, Rajas Moonka, Ralf Stoltze, Ralph Giles, Raphael
   Champeimont, Rene Saarsoo, Richard Ishida, Rimantas Liubertas,

|