<?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>10968</bug_id>
          
          <creation_ts>2010-10-02 18:32:31 +0000</creation_ts>
          <short_desc>SVGRGB values  need hash</short_desc>
          <delta_ts>2010-11-11 18:25:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SVG</product>
          <component>RelaxNG Schema</component>
          <version>SVG 1.1 Full</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Feature Request</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="j.chetwynd">jay</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>schepers</cc>
          
          <qa_contact name="SVG Public List">www-svg</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40499</commentid>
    <comment_count>0</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2010-10-02 18:32:31 +0000</bug_when>
    <thetext>currently code such as: 
&lt;rect x=&quot;20&quot; y=&quot;15&quot;  width=&quot;250&quot; height=&quot;268&quot;   fill=&quot;eee&quot; /&gt; 
validates.

however it seems this  is not correct (reference needed)
at  least one major browser barfs, and current blackberry fails reporting:
java  io  exception color parser &quot;eee&quot; is an invalid string representation of SVGRGB color

please move if this is wrong component

please advise manufacturers, browsers  if you believe vaildator is correct.

regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40500</commentid>
    <comment_count>1</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2010-10-02 18:42:31 +0000</bug_when>
    <thetext>firefox/minefield/mozilla will not, and will &apos;never&apos; accept rgb  values that  are not preceded by #.

in addition to blackberry browser report in description</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40501</commentid>
    <comment_count>2</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2010-10-02 19:01:40 +0000</bug_when>
    <thetext>https://bugzilla.mozilla.org/show_bug.cgi?id=597974</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40503</commentid>
    <comment_count>3</comment_count>
    <who name="Doug Schepers">schepers</who>
    <bug_when>2010-10-02 19:49:55 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; currently code such as: 
&gt; &lt;rect x=&quot;20&quot; y=&quot;15&quot;  width=&quot;250&quot; height=&quot;268&quot;   fill=&quot;eee&quot; /&gt; 
&gt; validates.
&gt; 
&gt; however it seems this  is not correct (reference needed)
&gt; at  least one major browser barfs, and current blackberry fails reporting:
&gt; java  io  exception color parser &quot;eee&quot; is an invalid string representation of
&gt; SVGRGB color
&gt; 

(In reply to comment #1)
&gt; firefox/minefield/mozilla will not, and will &apos;never&apos; accept rgb  values that 
&gt; are not preceded by #.

I would guess that this is allowed by the validator because it interprets it as an unknown X11 color keyword, not a malformed hex color (the Java exception mentioned is a #F00 herring).

The Validator should check color values against the list in the CSS3 Color module
  http://www.w3.org/TR/css3-color/#svg-color
and issue an error or warning based on that, if the string doesn&apos;t match the production for an RGB, RGBA, HSL, HSLA, or hexadecimal color notation, or one of the allowed color keywords like transparent or &apos;currentColor&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42445</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-11-11 18:25:59 +0000</bug_when>
    <thetext>the SVG 1.1 RelaxNG grammar currently used by validator.nu and thus by the W3C HTML validation backend was essentially taken straight from http://www.w3.org/Graphics/SVG/1.1/rng/svg-paint-attrib.rng

That grammar defines the datatype for the &quot;fill&quot; attribute simply as &quot;string&quot;.

So validator.nu does not real checking on the value of that attribute at all.

If there is a deficiency here, it is in the upstream schema. if the upstream schema is revised to do stricter constraint checking on that attribute, i will be happy to port the changes to valdiator.nu

meanwhile, I&apos;m changing the product on this bug to &quot;SVG&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>