summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/ahram-org-eg.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/ahram-org-eg.html')
-rw-r--r--LayoutTests/fast/encoding/ahram-org-eg.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/ahram-org-eg.html b/LayoutTests/fast/encoding/ahram-org-eg.html
new file mode 100644
index 0000000..d75cf06
--- /dev/null
+++ b/LayoutTests/fast/encoding/ahram-org-eg.html
@@ -0,0 +1,28 @@
+<htm>
+
+<head>
+<meta http-equiv="content-language" content="en-us">
+<meta http-equiv='content-type' content='text/htm; charset=windows-1256'>
+<script language="javascript">
+ if (navigator.appName == "Netscape")
+ {
+ document.write("<meta http-equiv='content-type' content='text/htm; charset=x-user-defined'>");
+ }
+</script>
+</head>
+
+<body>
+<p>Test a particular example of broken markup that was making us ignore a charset declaration.</p>
+<script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ var charset = document.characterSet;
+ if (!charset)
+ charset = document.charset;
+ if (!charset)
+ charset = document.inputEncoding;
+ document.write("Encoding: " + charset + " (should be windows-1256)");
+</script>
+</body>
+</htm>