In this case, would it return a single object, or an array of objects  
with a length of 1?

Walter

On Mar 26, 2008, at 10:42 AM, kangax wrote:
> element[element.childNodes.length-1] wouldn't work if lastChild is a
> whitespace.
> $$('ul li:last-child') on the other hand will always return element
> node.
>
> - kangax


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to