Closed Bug 269518 Opened 20 years ago Closed 20 years ago

CSS is ignored on unicode UTF-16 encoded HTML

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ensu, Assigned: dbaron)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win98; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Win98; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0

When a html-page that is encoded as UTF-16 uses a CSS then Firefox doesn't
render the page correctly. It ignores the stylesheet. The same page encoded as 
ASCII works fine. Please check it with
http://home.arcor.de/ensu/utf-test/pruefen_utf16.html
and
http://home.arcor.de/ensu/utf-test/pruefen_ascii.html

Reproducible: Always
Steps to Reproduce:
1. go to http://home.arcor.de/ensu/utf-test/pruefen_ascii.html
2. go to http://home.arcor.de/ensu/utf-test/pruefen_utf16.html


Actual Results:  
the same html code looks different when rendered

Expected Results:  
it should have rendered the UTF-16 encoded html code the same way than the ASCII
encoded  by using the referred CSS.
Assignee: firefox → dbaron
Component: General → Style System (CSS)
Product: Firefox → Browser
QA Contact: firefox.general → ian
Version: unspecified → Trunk
<style type="text/css">
    DUMMY{}

er, ok. I guess that works. are you realizing that the DUMMY{} is only needed
because you put the <style> there (which does not belong here)?
anyway, that's unrelated to this bug report...

your stylesheet does not declare a charset. neither in the file nor in the http
header. try putting:
@charset "ISO-8859-1";
or somesuch at the top of the CSS file and it should work. this is not a bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.