<?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>2403</bug_id>
          
          <creation_ts>2005-10-21 12:15:32 +0000</creation_ts>
          <short_desc>CSS Validator fails to find embedded stylesheet in UTF-16 encoded XHTML files.</short_desc>
          <delta_ts>2009-02-05 11:27:33 +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>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://exiclick.com/snk/index1.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ishmaeel</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <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>6840</commentid>
    <comment_count>0</comment_count>
    <who name="">ishmaeel</who>
    <bug_when>2005-10-21 12:15:32 +0000</bug_when>
    <thetext>It appears that the CSS validator is unable to find the stylesheet within an
XHTML1.0 document, if the document is UTF-8 or UTF-16 encoded. The URL provided
validates as XHTML by the markup validator but the CSS validator seems unable to
locate the embedded STYLE tag.

To test the case further, I tried to verify an ANSI-encoded version of the exact
same file (available via the url below) . Naturally, markup validator could not
even parse it (&quot;...it contained one or more bytes that I cannot interpret as
utf-16...&quot;) but the CSS validator was able to find the STYLE section and
validate it.

http://exiclick.com/snk/index.htm (The original)
http://exiclick.com/snk/index2.htm (Incorrectly ANSI-encoded test file)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6842</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-10-21 13:08:50 +0000</bug_when>
    <thetext>UTF-8 works for me, UTF-16 or other ascii-incompatible encodings probably do 
not unless you use a XML media type like application/xhtml+xml.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6843</commentid>
    <comment_count>2</comment_count>
    <who name="">ishmaeel</who>
    <bug_when>2005-10-21 13:58:03 +0000</bug_when>
    <thetext>That&apos;s right, UTF8 works correctly - my bad. Apparently I haven&apos;t tested 
extensively with the &apos;8&apos; while trying to get to the bottom of the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23475</commentid>
    <comment_count>3</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2009-02-05 11:27:33 +0000</bug_when>
    <thetext>Works for me (see test in utf16 http://www.w3.org/2009/02/utf16css.html )</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>