M
Maxim Demenko
Hello,
maybe it is a silly question, sorry in advance.
If i have a fragment like
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<script type="text/javascript">
function t(){
vUl=document.getElementById("c");
alert(vUl.parentNode.getAttribute("id"));
}
</script>
<body>
<ul id="a">
<a href="#" onclick="t()">Root</a>
<li id="b">Level 1</li>
<ul id="c">
<a href="#">Level 1</a>
</ul>
</ul>
</body>
</html>
Then IE6 reports <li id="b"> as parent node for <ul id="c">, that is
apparently wrong for my understanding, FF in opposite works correctly.
Is it a well known bug ? Maybe , there are some workarounds for this issue ?
Best regards
Maxim
maybe it is a silly question, sorry in advance.
If i have a fragment like
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<script type="text/javascript">
function t(){
vUl=document.getElementById("c");
alert(vUl.parentNode.getAttribute("id"));
}
</script>
<body>
<ul id="a">
<a href="#" onclick="t()">Root</a>
<li id="b">Level 1</li>
<ul id="c">
<a href="#">Level 1</a>
</ul>
</ul>
</body>
</html>
Then IE6 reports <li id="b"> as parent node for <ul id="c">, that is
apparently wrong for my understanding, FF in opposite works correctly.
Is it a well known bug ? Maybe , there are some workarounds for this issue ?
Best regards
Maxim