Opera 9.5: test$$MatchesAncestryWithTokensSeparatedByWhitespace fails
Reported by Svish | June 16th, 2008 @ 04:50 PM | in 1.6.0.3
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
$('working').show();
// If no element, just hide all
if(!e) {
$$('#schedule td').invoke('removeClassName', 'highlighted');
$('working').hide();
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)
x.up('td').removeClassName('highlighted');
else
x.up('td').addClassName('highlighted');
}
);
// Hide indicator and return false
$('working').hide();
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
-
John-David Dalton June 16th, 2008 @ 05:13 PM
- → Assigned user changed from to Andrew Dupont
- → State changed from new to bug
- → Milestone changed from to 1.6.0.3
Ya I noticed if I set Opera 9.5 to not use xpath and instead the regular domCompiler then it would work. Looks like a bug in xpath for Opera 9.5
-

-
John-David Dalton June 19th, 2008 @ 02:12 PM
- → State changed from bug to duplicate
This ticket is so similar to this one:
http://prototype.lighthouseapp.c...
I am closing this ticket in favor of the other one.
-

Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
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.
