[Webkit-unassigned] [Bug 21893] Character set is not detected in application/xhtml+xml pages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 26 06:26:39 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21893





------- Comment #2 from unik at compot.ru  2008-10-26 06:26 PDT -------
Ok. This has nothing to do with static content (it renders correctly). I think
a have a simplified test case.

File: test.html.
Served with "Content-Type: application/xhtml+xml; charset=UTF-8"
-- CUT --
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" dir="ltr">
<head>
        <meta http-equiv="Content-Type" content="application/xhtml+xml;
charset=UTF-8" />
</head>
<body>
        <div id="a"></div>
        <script type="text/javascript" src="script.js"></script>
</body>
</html>
-- CUT --

File: script.js
Served with "Content-Type: application/x-javascript" (note no charset!)
-- CUT --
var d1 = document.getElementById('a');
var d2 = document.createElement('div');
var x = 'ÀÁÂÃÄ';
d2.appendChild(d2.ownerDocument.createTextNode(x));
d1.appendChild(d2);
-- CUT --

Script should insert 5 uppercase cyrillic letters into div#a. But it does not.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list