#167 ✓duplicate

Opera 9.5: test$$MatchesAncestryWithTokensSeparatedByWhitespace fails

Reported by Svish | June 16th, 2008 @ 06:52 PM | in

Ran rake test, and got this error in Opera 9.5.

test$$MatchesAncestryWithTokensSeparatedByWhitespace - failed - 1 assertions, 1 failures, 0 errors - Failure: assertEnumEqual
expected @<[<em id="em2">, <em id="em">, <span id="span">]>, actual: <[<em id="em2">, <em id="em">]>

What made me wonder was that this function in my javascript suddenly failed to work properly:

function highlighter(e)
  // Display indicator
  // If no element, just hide all
  if(!e) {
    $$('#schedule td').invoke('removeClassName', 'highlighted');
    return false;

  // Store title of the clicked cell
  title = $(e).up('td').down('h3').innerHTML;

  alert($$('#schedule td h3').length); // Added to figure out what goes wrong...

  // Go through each cell title and highlight if same title
  $$('#schedule td h3').each(function (x) 
      if(title != x.innerHTML)

  // Hide indicator and return false
  return false;

The marked alert line tells me why it failed to do what it was supposed to. Cause $$('#schedule td h3') only returned 7 of the almost 190 elements it should have found! Works in firefox and worked in the previous version of opera.

So, I got the unittests and ran it, and got that failure previously mentioned. Hope you can fix this!! Or get Opera to unbreak it :p

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

Referenced by