blob: 75c0425e4a182370171395b748f9c3ad3f989398 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="../../../resources/js-test.js"></script>
<div id="a" class="a"></div>
<div id="ä" class="ä"></div>
<div id="A" class="A"></div>
<div id="Ä" class="Ä"></div>
<script>
function getByClassName(classNames)
{
var nodes = document.getElementsByClassName(classNames);
var result = "";
for (var i = 0; i < nodes.length; ++i) {
if (i)
result += " ";
result += nodes[i].id;
}
return result;
}
shouldBeEqualToString("getByClassName('a')", "a");
shouldBeEqualToString("getByClassName('A')", "A");
shouldBeEqualToString("getByClassName('ä')", "ä");
shouldBeEqualToString("getByClassName('Ä')", "Ä");
</script>