meta-in-xhtml.xhtml revision fd5c6425ce58eb75211be7718d5dee960842a37e
1<?xml version="1.0" ?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd"> 4<html xmlns="http://www.w3.org/1999/xhtml"> 5<head> 6<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/> 7</head> 8<body> 9<p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=5620">bug 5620</a>: 10Should only honor encoding from <meta> in HTML</p> 11 12<p id="result" /> 13 14<script> 15if (window.layoutTestController) 16 layoutTestController.dumpAsText(); 17 18document.getElementById("result").innerHTML = "Charset: " + 19 (document.charset ? document.charset : document.characterSet) + " (should be UTF-8)"; 20</script> 21 22</body> 23</html> 24