getParent and getFirst not working in IE 7
I can't decide if this is due to some strange settings in my browser, or
mootools simply didn't implement those for IE 7.
The code is:
function eventHandler(E)
{
var Elm=E.target;
alert(Elm.getParent('li').innerHTML);
}
function init() //shoots on the domReady event
{
var ULs=$$('ul');
for(var i=0;i<ULs.length;i++)
{
ULs[i].addEvent('click',eventHandler);
}
}
//HTML
<ul>
<li><div>.....</div><div>......</div></li>
....
...
...
</ul>
.....
....
<ul>
<li><div>.....</div><div>......</div></li>
....
...
...
</ul>