Hallo,
das nachfolgende Script zeigt im IE8 beim "alert"
listdiv4||fd7
an. Versteht das jemand? Im Firefox werden die korrekten Angaben ausgewisen.
Viele Grüße
Siri
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title></title>
</head>
<body>
<ul id="wrapper">
<li id="fd7" name="blubb" class="listdiv4"><div class="edup" name="fd7">Up</div><div class="eddown" name="fd7">Down</div></li>
</ul>
<script>
var correspondingElementsDown = document.getElementsByName("fd7");
for (var x= 0; x < correspondingElementsDown.length; x++) {
var elementDownLoop = correspondingElementsDown[x];
alert(elementDownLoop.className+"||"+elementDownLoop.id);
}
</script>
</body>
</html>