<?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>1504</bug_id>
          
          <creation_ts>2005-06-20 21:37:34 +0000</creation_ts>
          <short_desc>Validator chokes on the Tantek Mid Pass Filter (MPF) under specific conditions</short_desc>
          <delta_ts>2005-08-26 15:01:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 2.0</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.jessemccarthy.net/testing/mid_pass_filter/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jesse McCarthy">w3bugzilla</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>contact_marcos</cc>
    
    <cc>ewexler</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4320</commentid>
    <comment_count>0</comment_count>
    <who name="Jesse McCarthy">w3bugzilla</who>
    <bug_when>2005-06-20 21:37:34 +0000</bug_when>
    <thetext>The CSS validator chokes on the Tantek Mid Pass Filter (MPF) in certain 
situations.  For some reason it parses the stylesheet incorrectly and get&apos;s 
fooled by the escaped quote.  The error reported is &quot;Parse error - 
Unrecognized : @import &apos;stylesheet.css&apos;;&quot;.

The example I linked to shows two pages, almost identical, both valid XHTML 
strict, that both link to the same two stylesheets, one of which implements 
the MPF.  The only difference between the pages is the order in which they 
link to the stylesheets.  One passes CSS validation, the other doesn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4321</commentid>
    <comment_count>1</comment_count>
    <who name="Jesse McCarthy">w3bugzilla</who>
    <bug_when>2005-06-20 21:42:45 +0000</bug_when>
    <thetext>Just to make sure you get that example URL:
http://www.jessemccarthy.net/testing/mid_pass_filter/

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4373</commentid>
    <comment_count>2</comment_count>
      <attachid>386</attachid>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2005-06-29 08:10:49 +0000</bug_when>
    <thetext>Created attachment 386
Non-empty, placeholder style sheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4374</commentid>
    <comment_count>3</comment_count>
      <attachid>387</attachid>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2005-06-29 08:45:19 +0000</bug_when>
    <thetext>Created attachment 387
Mid-pass filter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4375</commentid>
    <comment_count>4</comment_count>
      <attachid>388</attachid>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2005-06-29 08:56:41 +0000</bug_when>
    <thetext>Created attachment 388
HTML document linking first to a style sheet with the mid-pass filter, and second to another style sheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4376</commentid>
    <comment_count>5</comment_count>
      <attachid>389</attachid>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2005-06-29 08:59:06 +0000</bug_when>
    <thetext>Created attachment 389
HTML document linking first to a placeholder style sheet, and second to a style sheet with the mid-pass filter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4377</commentid>
    <comment_count>6</comment_count>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2005-06-29 09:10:43 +0000</bug_when>
    <thetext>The validator approves of the style sheet with the mid-pass filter:
&lt;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D387&amp;usermedium=all&gt;.

The validator approves of the document whose first style sheet has the mid-pass
filter:
&lt;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D388&amp;usermedium=all&gt;.

The validator erroneously disapproves of the document whose second style sheet
has the mid-pass filter:
&lt;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D389&amp;usermedium=all&gt;.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4397</commentid>
    <comment_count>7</comment_count>
    <who name="Marc Richards">mrichar1</who>
    <bug_when>2005-06-30 20:50:30 +0000</bug_when>
    <thetext>Thanks for reporting this bug Jesse. I was just about to waste a whole lot of
time trying to figure out why http://www.capgemini.com/ validates but my site
(which uses the two style sheets and has the mid-pass in the second stylesheet)
doesn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5532</commentid>
    <comment_count>8</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2005-08-26 14:48:18 +0000</bug_when>
    <thetext>Fixed, see http://qa-dev.w3.org:8001/css-validator/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5534</commentid>
    <comment_count>9</comment_count>
    <who name="Jesse McCarthy">w3bugzilla</who>
    <bug_when>2005-08-26 15:01:21 +0000</bug_when>
    <thetext>That&apos;s great -- appreciated.  When does that get rolled out to the production 
validator?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>386</attachid>
            <date>2005-06-29 08:10:49 +0000</date>
            <delta_ts>2005-06-29 08:10:49 +0000</delta_ts>
            <desc>Non-empty, placeholder style sheet.</desc>
            <filename>dummy.css</filename>
            <type>text/css; charset=utf-8</type>
            <size>30</size>
            <attacher name="Etan Wexler">ewexler</attacher>
            
              <data encoding="base64">ZHVtbXkgew0KICAgIGNvbG9yOiAjMDAwOw0KfQ0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>387</attachid>
            <date>2005-06-29 08:45:19 +0000</date>
            <delta_ts>2005-06-29 08:45:19 +0000</delta_ts>
            <desc>Mid-pass filter.</desc>
            <filename>MPF.css</filename>
            <type>text/css; charset=utf-8</type>
            <size>103</size>
            <attacher name="Etan Wexler">ewexler</attacher>
            
              <data encoding="base64">QG1lZGlhIHR0eSB7DQogICAgaSB7DQogICAgICAgIGNvbnRlbnQ6ICJcIjsvKiIgIiovfX0gQGlt
cG9ydCAnc29tZS1zdHlsZS1zaGVldCc7IC8qIjsNCiAgICB9DQp9LyogKi8NCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>388</attachid>
            <date>2005-06-29 08:56:41 +0000</date>
            <delta_ts>2005-06-29 08:56:41 +0000</delta_ts>
            <desc>HTML document linking first to a style sheet with the mid-pass filter, and second to another style sheet.</desc>
            <filename>MPF-first.html</filename>
            <type>text/html; charset=utf-8</type>
            <size>535</size>
            <attacher name="Etan Wexler">ewexler</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQwMS9zdHJpY3QuZHRkIj4KPGh0bWwgbGFuZz0iZW4iPgo8aGVh
ZD4KPGxpbmsgcmVsPSJzdHlsZXNoZWV0IiB0eXBlPSJ0ZXh0L2NzcyIgaHJlZj0iaHR0cDovL3d3
dy53My5vcmcvQnVncy9QdWJsaWMvYXR0YWNobWVudC5jZ2k/aWQ9Mzg3IiAvPgo8bGluayByZWw9
InN0eWxlc2hlZXQiIHR5cGU9InRleHQvY3NzIiBocmVmPSJodHRwOi8vd3d3LnczLm9yZy9CdWdz
L1B1YmxpYy9hdHRhY2htZW50LmNnaT9pZD0zODYiIC8+Cjx0aXRsZT5DYXNjYWRpbmcgU3R5bGUg
U2hlZXRzOiBtaWQtcGFzcyBmaWx0ZXI8L3RpdGxlPgo8L2hlYWQ+Cjxib2R5Pgo8cD4KVGhlIHN0
eWxlIHNoZWV0cyBsaW5rZWQgZnJvbSB0aGlzIGRvY3VtZW50IGFyZSB2YWxpZCBDYXNjYWRpbmcg
U3R5bGUgU2hlZXRzLA0KZXZlbiB3aXRoIHRoZSB1c2Ugb2YgdGhlIG1pZC1wYXNzIGZpbHRlci4N
CjwvcD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>389</attachid>
            <date>2005-06-29 08:59:06 +0000</date>
            <delta_ts>2005-06-29 08:59:06 +0000</delta_ts>
            <desc>HTML document linking first to a placeholder style sheet, and second to a style sheet with the mid-pass filter.</desc>
            <filename>MPF-second.html</filename>
            <type>text/html; charset=utf-8</type>
            <size>535</size>
            <attacher name="Etan Wexler">ewexler</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQwMS9zdHJpY3QuZHRkIj4KPGh0bWwgbGFuZz0iZW4iPgo8aGVh
ZD4KPGxpbmsgcmVsPSJzdHlsZXNoZWV0IiB0eXBlPSJ0ZXh0L2NzcyIgaHJlZj0iaHR0cDovL3d3
dy53My5vcmcvQnVncy9QdWJsaWMvYXR0YWNobWVudC5jZ2k/aWQ9Mzg2IiAvPgo8bGluayByZWw9
InN0eWxlc2hlZXQiIHR5cGU9InRleHQvY3NzIiBocmVmPSJodHRwOi8vd3d3LnczLm9yZy9CdWdz
L1B1YmxpYy9hdHRhY2htZW50LmNnaT9pZD0zODciIC8+Cjx0aXRsZT5DYXNjYWRpbmcgU3R5bGUg
U2hlZXRzOiBtaWQtcGFzcyBmaWx0ZXI8L3RpdGxlPgo8L2hlYWQ+Cjxib2R5Pgo8cD4KVGhlIHN0
eWxlIHNoZWV0cyBsaW5rZWQgZnJvbSB0aGlzIGRvY3VtZW50IGFyZSB2YWxpZCBDYXNjYWRpbmcg
U3R5bGUgU2hlZXRzLA0KZXZlbiB3aXRoIHRoZSB1c2Ugb2YgdGhlIG1pZC1wYXNzIGZpbHRlci4N
CjwvcD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>