#522 bug

Opera and $$('.wrapper .inner') does not work correctly

Reported by Cyrus | January 13th, 2009 @ 02:41 PM | in After 1.7

Please see the following test case:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<script src="http://ajax.googleapis.com/ajax/libs/prototype/" type="text/javascript">

<script type="text/javascript">
    document.observe('dom:loaded', function() {
        $('matchcount').update('Matches: ' + $$

('.wrapper .inner').length);


<div class="wrapper">
  <a href="#" class="inner">test</a>
  <div class="wrapper">
    <a href="#" class="inner">test</a>
<div id='matchcount'></div>

Should write "2" but writes only "1" with Opera 9.63.

I will also open a bug report at Opera.

Full discussion is here:


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket