blob: 25282191911bdca7b6be9d8dc46b4ae712bcab05 [file] [log] [blame]
<meta charset="koi8-r">
<body onload="test()">
<script>
if (window.testRunner)
testRunner.dumpAsText();
function result(i) {
return window.frames[i].document.documentElement.getAttribute("test");
}
function test() {
document.getElementById("result").innerHTML = "1. " + (result(0) == "ðÒÏ×ÅÒËÁ" ? "SUCCESS" : "FAILURE: " + result(0)) + ".\r";
document.getElementById("result").innerHTML += "2. " + (result(1) == "ðÒÏ×ÅÒËÁ" ? "SUCCESS" : "FAILURE: " + result(1)) + ".\r";
document.getElementById("result").innerHTML += "3. " + (result(2) == "ðÒÏ×ÅÒËÁ" ? "SUCCESS" : "FAILURE: " + result(2)) + ".\r";
}
</script>
<p>Test that non-ASCII data: URLs are handled correctly.</p>
<pre id=result></pre>
<iframe src="data:image/svg+xml;charset=utf-8,<svg xmlns=%22http://www.w3.org/2000/svg%22 test='ðÒÏ×ÅÒËÁ'></svg>"></iframe>
<iframe src="data:image/svg+xml;charset=utf-8,<svg xmlns=%22http://www.w3.org/2000/svg%22 foo='#' test='ðÒÏ×ÅÒËÁ'></svg>"></iframe>
<iframe src="data:image/svg+xml;charset=utf-8,<svg xmlns=%22http://www.w3.org/2000/svg%22 foo='#' test='%D0%9F%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0'></svg>"></iframe>
</body>