haikuwebkit/LayoutTests/fast/parser/test-unicode-characters-in-...

26 lines
1.9 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html><head><title>unicode characters which are great than 0xFF are in attribute name</title>
<meta http-equiv=Content-Type content="text/html; charset=unicode">
<script>
function appendStringToContent(contentBlock, str) {
var text = document.createTextNode(str + '\n');
contentBlock.appendChild(text);
}
function RunTest() {
if (window.testRunner)
testRunner.dumpAsText();
var obj = document.getElementById('content');
var attr_len = obj.attributes.length;
for(var i = 0; i < attr_len; ++i)
appendStringToContent(obj, i + '. ' + obj.attributes[i].name + " : " + obj.attributes[i].value);
}
</script>
</head>
<body onload="RunTest()">
<pre id="content" title="http://www.315.com.cn/newwebsite/images0821/315_ca_03.gif" la ng="zh-cn">All attributes of the content element are:
</pre>
</body></html>
<EFBFBD>