summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/meta-in-xhtml.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/meta-in-xhtml.xhtml')
-rw-r--r--LayoutTests/fast/encoding/meta-in-xhtml.xhtml23
1 files changed, 23 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/meta-in-xhtml.xhtml b/LayoutTests/fast/encoding/meta-in-xhtml.xhtml
new file mode 100644
index 0000000..d9c6065
--- /dev/null
+++ b/LayoutTests/fast/encoding/meta-in-xhtml.xhtml
@@ -0,0 +1,23 @@
+<?xml version="1.0" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
+</head>
+<body>
+<p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=5620">bug 5620</a>:
+Should only honor encoding from &lt;meta> in HTML</p>
+
+<p id="result" />
+
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+document.getElementById("result").innerHTML = "Charset: " +
+ (document.charset ? document.charset : document.characterSet) + " (should be UTF-8)";
+</script>
+
+</body>
+</html>