[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-20 Thread kangax
On Nov 20, 6:29 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > Hi Jay, > > Good point about documentation; would you raise a ticket for that as > well and assign it to me (if it lets you)?  (I'm pitching in on > documentation a bit.)  And yes, as far as I know Prototype basically > doesn't suppor

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-20 Thread T.J. Crowder
Hi Jay, Good point about documentation; would you raise a ticket for that as well and assign it to me (if it lets you)? (I'm pitching in on documentation a bit.) And yes, as far as I know Prototype basically doesn't support quirks mode, I think in quirks mode you'll run into some other problems

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-20 Thread Jay
Thanks very much for pointing me in the right direction on this. I wonder if there should be somewhere a caveat to the effect that $$ will only work correctly with a proper doctype. Are there other features of prototype or scriptaculous with a similar dependency?. I'll look after getting the ticke

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-20 Thread T.J. Crowder
@Jay: > Not sure why you think we can ignore the scenario where the case of > the ID is different You're absolutely right, we can't. I don't know why I thought that, either. :-) @kangax: > Does this also happen with a valid doctype? Gah! Good catch, kangax. No, it doesn't! All of the brow

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread kangax
On Nov 19, 5:46 pm, Jay <[EMAIL PROTECTED]> wrote: > I was trying to scale down the example to the essence of the issue. Of > course, $('Contents') should be interchangeable with $$('#Contents'), > except that is the bug - it doesn't work on Safari or IE. In the real > world, I might want the sele

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Jay
I was trying to scale down the example to the essence of the issue. Of course, $('Contents') should be interchangeable with $$('#Contents'), except that is the bug - it doesn't work on Safari or IE. In the real world, I might want the selector to be more like $$('table#tblTMRoster tbody tr td.coun

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Jay
Yes, you have captured the essence of the issue - unexpectedly inconsistent results across browsers, with no apparent workaround except to make all id's and all class names lower case. On my tests using Windows XP Pro SP3, the browser versions were Firefox 3.0.4, IE 6.0.2900, and Safari 3.2. On th

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread T.J. Crowder
Sorry for the double-post: What version of Safari are you using and on what platform? I've replicated the results in my post with Safari 3.1.2 for Windows on Windows XP. -- T.J. On Nov 19, 7:41 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > Hi Jay, > > Thanks for this.  We can ignore the resu

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread T.J. Crowder
Hi Jay, Thanks for this. We can ignore the results for when the case of the ID you're requesting is different from the case of the ID on the table, since case is significant in IDs[1] -- not that I'm surprised to see that IE is, um, different there. So to my mind, that leaves us with this anoma

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Alex Mcauley
$$() with # does not return anything more in the array than one element because id's should be unique ... its in the docs http://www.prototypejs.org/api/utility/dollar-dollar $$('#contents'); // -> same as $('contents'), only it returns an array anyway (even though IDs must be unique within a

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Jay
sorry, I meant to make the prototype library src link more generic before sending - just point it to your favorite 1.6.0.3 link On Nov 19, 11:34 am, Jay <[EMAIL PROTECTED]> wrote: > Hi All, > > I seem to be painted into a corner with use of $$ with respect to case > sensitivity of the id attribut