This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2403 - CSS Validator fails to find embedded stylesheet in UTF-16 encoded XHTML files.
Summary: CSS Validator fails to find embedded stylesheet in UTF-16 encoded XHTML files.
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://exiclick.com/snk/index1.htm
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 12:15 UTC by ishmaeel
Modified: 2009-02-05 11:27 UTC (History)
0 users

See Also:


Attachments

Description ishmaeel 2005-10-21 12:15:32 UTC
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 ("...it contained one or more bytes that I cannot interpret as
utf-16...") 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)
Comment 1 Bj 2005-10-21 13:08:50 UTC
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.
Comment 2 ishmaeel 2005-10-21 13:58:03 UTC
That's right, UTF8 works correctly - my bad. Apparently I haven't tested 
extensively with the '8' while trying to get to the bottom of the problem.
Comment 3 Yves Lafon 2009-02-05 11:27:33 UTC
Works for me (see test in utf16 http://www.w3.org/2009/02/utf16css.html )