<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9847</bug_id>
          
          <creation_ts>2010-06-03 23:09:38 +0000</creation_ts>
          <short_desc>legacy color value parsing algorithm should trim whitespace</short_desc>
          <delta_ts>2011-05-08 00:40:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#colors</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>dbaron</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35954</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-06-03 23:09:38 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#colors

Comment:
I think the rules for parsing a legacy color value should specify that
whitespace at the edges of the string is removed before running the rest of
the algorithm.	Gecko and (if my memory is correct) WebKit both do this, so
it&apos;s certainly Web-compatible behavior.  And it seems quite odd for &lt;body
bgcolor=&quot; red&quot;&gt; to fall through to the legacy color parsing algorithm rather
than producing the obvious result.

Posted from: 63.245.220.240</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35955</commentid>
    <comment_count>1</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2010-06-03 23:15:22 +0000</bug_when>
    <thetext>That was me reporting this.  Now I know what happens when I use the comment UI on the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35956</commentid>
    <comment_count>2</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2010-06-03 23:17:08 +0000</bug_when>
    <thetext>And a better URL is:
http://www.w3.org/TR/html5/infrastructure.html#rules-for-parsing-a-legacy-color-value</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37902</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-26 05:02:36 +0000</bug_when>
    <thetext>The TR/ page is rarely a better URL, but the fragment identifier in question might be better. :-)

BTW if you log in using the login button at the top right of the spec, you&apos;ll get CC&apos;ed automatically on Bugzilla bugs (assuming you use the same e-mail address for both).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37905</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-26 05:48:12 +0000</bug_when>
    <thetext>How about &lt;body bgcolor=&quot; #f00&quot;&gt; ? or &lt;body bgcolor=&quot; #f00000&quot;&gt;? or &lt;body bgcolor=&quot; f00&quot;&gt;? I&apos;m not clear on when we stop having to produce the &quot;obvious&quot; result here.

WebKit, Opera, and Firefox (the browsers I could easily test here) all have different boundaries with respect to how far they&apos;re willing to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37906</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-26 05:50:20 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Done as requested for now. I&apos;m concerned that this will lead to a slippery slope of further requests, in which case I will ask for data showing how this is handled in legacy browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37907</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-26 05:50:37 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5359.
Check-in comment: Make &apos; red&apos; parse as &apos;red&apos; for legacy colours.
http://html5.org/tools/web-apps-tracker?from=5358&amp;to=5359</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37908</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-26 05:55:01 +0000</bug_when>
    <thetext>(According to Paul Irish, IE (6, 8, 9) doesn&apos;t ignore spaces here, by the way.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48314</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-08 00:40:26 +0000</bug_when>
    <thetext>Follow-up in bug 12372.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>