I am using the latest prototype.js from git
HTML
<!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" xml:lang="en" lang="en">
<head>
<title>My Prototype test bench</title>
<script type="text/javascript" src="lib/prototype.js"></script>
</head><body>
<h1>A simple page to test Prototype</h1>
<div id="gridRow">
<span>hi</span>
</div>
<div id="gridRow">
<span>bye</span>
</div>
<script>
document.observe('dom:loaded',function(){
console.log( $$('#gridRow').last().down().innerHTML );
});
</script>
</body>
</html>
IE logs "hi"
Firefox logs "bye"
Why is that?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---