Guys, thank you for your responses. I found out what the problem is,
see the code fragment below.
I used the _extended attribute on one of the divs... If I changed the
attribute to anything else, the the alert would correctly displays 2 as
the number of elements with the recnum attribute. Turns out Prototype
uses the _extended attribute internally in IE.
BTW prepending the universal selector had no impact.
<html>
<head>
<script type="text/javascript"
src="/w2gi/javascript/prototype.js"></script>
<script>
function init() {
alert($('panel').getElementsBySelector('*[recnum]').length)
}
</script>
</head>
<body onload="init();">
<div id="panel">
<TABLE>
<TBODY>
<TR>
<TD>
<DIV _extended="true" templateid="default">
<DIV>
<DIV recnum="1">1</DIV>
</DIV>
</DIV>
</TD>
<TD>
<A href="#" recnum="1">Link</A>
</TD>
</TR>
</TBODY>
</TABLE>
</div>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---