Each to their own, everyone has their own coding practices and concepts. In PHP and Perl you -could- call "." a heirachial operator as it joins 2 nodes (strings for example) together - thus jumping from one to the next or making the bridge (to assimilate them) - which is what it does in Javascript for example (kind of)!!!!.
As i said - each to their own but if CSS explicits ".className" as a classname then perhaps they should think about not having dots in ID's ([0-9Aa-Zz]\-_) would be a better fit for DOM element id's in my opinion. Classnames do not allow dots as far as i know. I would've thought the devs of JS libraries wluld have realised that perhaps 0.01% of javascript developers in the world would use dots and possibly didnt want the performance lack to accomodate these users .... Just my 2 pence worth!!! Alex Mcauley Developer The Vacancy Market LTD http://www.thevacancymarket.com ----- Original Message ----- From: "ColinFine" <colin.f...@pace.com> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> Sent: Tuesday, July 21, 2009 1:09 PM Subject: [Proto-Scripty] Re: selectors failing in IE8&FF3 On Jul 21, 10:42 am, "Alex McAuley" <webmas...@thecarmarketplace.com> wrote: > Why would you want to use "." in an id.... In most web programming a "." > or > a "::" means its a node or part of a class or something. > > This makes no sense to me why anyone would want to confuse js libraries > and > possible server side backends. > I started out agreeing with you, then thought about it, and realised that I disagree quite strongly. Why shouldn't you use dots if you want? Different languagfe use symbols in different ways. In both Perl and PHP (two widely used languages for web programming) '.' is a concatenation operator, not a hierarchical one. It is now quite common to use dots between the parts of an email name, though the purists used to complain that the dot was supposed to denote hierarchy. If the HTML spec didn't allow '.', that would be different. But since it does you are free to use them. There's no question of 'confusing' js libraries or server programs unless those libraries and programs are wrong, in which case they ought to be fixed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---