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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>14345</bug_id>
          
          <creation_ts>2007-06-23 15:29:14 -0700</creation_ts>
          <short_desc>CSS Parser will accepts parts of a ruleset that is correct</short_desc>
          <delta_ts>2007-08-03 23:11:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14373</dup_id>
          
          <bug_file_loc>http://www.hixie.ch/tests/evil/css/css21/tests/t040103-ident-08-c.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Gérard Talbot (no longer involved)">browserbugs2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6538</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2007-06-23 15:29:14 -0700</bug_when>
    <thetext>When a comma is involved in a ruleset, 
&quot;the whole statement should be ignored if there is an error anywhere in the selector, even though the rest of the selector may look reasonable in CSS 2.1.&quot;
CSS 2.1, section 4.1.7 Rule sets, declaration blocks, and selectors
http://www.w3.org/TR/CSS21/syndata.html#q10

In other words:

&lt;style type=&quot;text/css&quot;&gt;
.two { color: green; background: white; }
#6ident, .two { color: red; }
&lt;/style&gt;

&lt;p class=&quot;two&quot;&gt;This should be green.&lt;/p&gt;

because an ID selector can not start with a digit.
http://www.w3.org/TR/CSS21/syndata.html#q6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6529</commentid>
    <comment_count>1</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2007-06-23 16:01:48 -0700</bug_when>
    <thetext>The real issue at the source may be that Safari accepts, honors id selectors starting with a digit:

http://www.hixie.ch/tests/evil/css/css21/tests/t0509-id-sel-syntax-01-f.htm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6418</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2007-06-24 16:46:36 -0700</bug_when>
    <thetext>Bug 14373 is more accurate.

*** This bug has been marked as a duplicate of 14373 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>