HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2941Clarify how to handle legacy color attributes when the parser for them returns an error. (credit: sp) (bug 6556)2009-03-31 23:56
@@ -71077,78 +71077,81 @@ table[frames=border] > tfoot > tr > td, table[frames=border] > tfoot > tr > th {
   if this is successful, the user agent is expected to treat the
   attribute as a <span title="presentational hints">presentational
   hint</span> setting the element's 'background-image' property to the
   resulting <span>absolute URL</span>.</p>
 
   <p>When a <code>body</code>, <code>table</code>, <code>thead</code>,
   <code>tbody</code>, <code>tfoot</code>, <code>tr</code>,
   <code>td</code>, or <code>th</code> element has a <code
   title="attr-bgcolor">bgcolor</code> attribute set, the new value is
   expected to be parsed using the <span>rules for parsing a legacy
-  color value</span>, and the user agent is expected to treat the
-  attribute as a <span title="presentational hints">presentational
-  hint</span> setting the element's 'background-color' property to the
-  resulting color.</p>
+  color value</span>, and if that does not return an error, the user
+  agent is expected to treat the attribute as a <span
+  title="presentational hints">presentational hint</span> setting the
+  element's 'background-color' property to the resulting color.</p>
 
   <p>When a <code>body</code> element has a <code
   title="attr-body-text">text</code> attribute, its value is expected
   to be parsed using the <span>rules for parsing a legacy color
-  value</span>, and the user agent is expected to treat the attribute
-  as a <span title="presentational hints">presentational hint</span>
-  setting the element's 'color' property to the resulting color.</p>
+  value</span>, and if that does not return an error, the user
+  agent is expected to treat the attribute as a <span
+  title="presentational hints">presentational hint</span> setting the
+  element's 'color' property to the resulting color.</p>
 
   <p>When a <code>body</code> element has a <code
   title="attr-body-link">link</code> attribute, its value is expected
   to be parsed using the <span>rules for parsing a legacy color
-  value</span>, and the user agent is expected to treat the attribute
-  as a <span title="presentational hints">presentational hint</span>
-  setting the 'color' property of any element in the
-  <code>Document</code> matching the ':link' pseudo-class to the
-  resulting color.</p>
+  value</span>, and if that does not return an error, the user agent
+  is expected to treat the attribute as a <span title="presentational
+  hints">presentational hint</span> setting the 'color' property of
+  any element in the <code>Document</code> matching the ':link'
+  pseudo-class to the resulting color.</p>
 
   <p>When a <code>body</code> element has a <code
   title="attr-body-vlink">vlink</code> attribute, its value is
   expected to be parsed using the <span>rules for parsing a legacy
-  color value</span>, and the user agent is expected to treat the
-  attribute as a <span title="presentational hints">presentational
-  hint</span> setting the 'color' property of any element in the
-  <code>Document</code> matching the ':visited' pseudo-class to the
-  resulting color.</p>
+  color value</span>, and if that does not return an error, the user
+  agent is expected to treat the attribute as a <span
+  title="presentational hints">presentational hint</span> setting the
+  'color' property of any element in the <code>Document</code>
+  matching the ':visited' pseudo-class to the resulting color.</p>
 
   <p>When a <code>body</code> element has a <code
   title="attr-body-alink">alink</code> attribute, its value is
   expected to be parsed using the <span>rules for parsing a legacy
-  color value</span>, and the user agent is expected to treat the
-  attribute as a <span title="presentational hints">presentational
-  hint</span> setting the 'color' property of any element in the
-  <code>Document</code> matching the ':active' pseudo-class and either
-  the ':link' pseudo-class or the ':visited' pseudo-class to the
-  resulting color.</p>
+  color value</span>, and if that does not return an error, the user
+  agent is expected to treat the attribute as a <span
+  title="presentational hints">presentational hint</span> setting the
+  'color' property of any element in the <code>Document</code>
+  matching the ':active' pseudo-class and either the ':link'
+  pseudo-class or the ':visited' pseudo-class to the resulting
+  color.</p>
 
   <p>When a <code>table</code> element has a <code
   title="attr-table-bordercolor">bordercolor</code> attribute, its
   value is expected to be parsed using the <span>rules for parsing a
-  legacy color value</span>, and the user agent is expected to treat
-  the attribute as a <span title="presentational hints">presentational
-  hint</span> setting the element's 'border-top-color',
-  'border-right-color', 'border-bottom-color', and
-  'border-right-color' properties to the resulting color.</p>
+  legacy color value</span>, and if that does not return an error, the
+  user agent is expected to treat the attribute as a <span
+  title="presentational hints">presentational hint</span> setting the
+  element's 'border-top-color', 'border-right-color',
+  'border-bottom-color', and 'border-right-color' properties to the
+  resulting color.</p>
 
   <hr>
 
   <p>When a <code>font</code> element has a <code
   title="attr-font-color">color</code> attribute, its value is
   expected to be parsed using the <span>rules for parsing a legacy
-  color value</span>, and the user agent is expected to treat the
-  attribute as a <span title="presentational hints">presentational
-  hint</span> setting the element's 'color' property to the resulting
-  color.</p>
+  color value</span>, and if that does not return an error, the user
+  agent is expected to treat the attribute as a <span
+  title="presentational hints">presentational hint</span> setting the
+  element's 'color' property to the resulting color.</p>
 
   <p>When a <code>font</code> element has a <code
   title="attr-font-face">face</code> attribute, the user agent is
   expected to treat the attribute as a <span title="presentational
   hints">presentational hint</span> setting the element's
   'font-family' property to the attribute's value.</p>
 
   <p>When a <code>font</code> element has a <code
   title="attr-font-pointsize">pointsize</code> attribute, the user
   agent is expected to parse that attribute's value using the
@@ -71531,23 +71534,24 @@ hr[color], hr[noshade] { border-style: solid; }</pre>
   <span>presentational hints</span> for the 'height' property on the
   element.</p>
 
   <p>The <code title="attr-hr-width">width</code> attribute on an
   <code>hr</code> element <span>maps to the dimension property</span>
   'width' on the element.</p>
 
   <p>When an <code>hr</code> element has a <code
   title="attr-hr-color">color</code> attribute, its value is expected
   to be parsed using the <span>rules for parsing a legacy color
-  value</span>, and the user agent is expected to treat the attribute
-  as a <span title="presentational hints">presentational hint</span>
-  setting the element's 'color' property to the resulting color.</p>
+  value</span>, and if that does not return an error, the user agent
+  is expected to treat the attribute as a <span title="presentational
+  hints">presentational hint</span> setting the element's 'color'
+  property to the resulting color.</p>
 
 
 
   <h4>The <code>fieldset</code> element</h4>
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
 fieldset {
   margin-left: 2px; margin-right: 2px;
   border: groove 2px ThreeDFace;
@@ -72545,24 +72549,24 @@ textarea { binding: <i title="">textarea</i>; }</pre>
 
     </ol>
 
     <p>The <dfn>frame border color</dfn> of a <code>frameset</code> or
     <code>frame</code> element is the color obtained from the
     following algorithm:</p>
 
     <ol>
 
      <li><p>If the element has a <code
-     title="attr-frames-bordercolor">bordercolor</code> attribute,
-     then return the color obtained from applying the <span>rules for
-     parsing a legacy color value</span> to that attribute's
-     value.</p></li>
+     title="attr-frames-bordercolor">bordercolor</code> attribute, and
+     applying the <span>rules for parsing a legacy color value</span>
+     to that attribute's value does not result in an error, then
+     return the color so obtained.</p></li>
 
      <li><p>Otherwise, if the element has a parent element that is a
      <code>frameset</code> element, then the <span>frame border
      color</span> of that element.</p>
 
      <li><p>Otherwise, return gray.</p></li>
 
     </ol>
 
    </li>

|