Hyphens and Underscores are definitely included in the specs, and I haven't run across a good argument that would urge us not to use them. Colons and periods however, *are* problematic because they are also special characters in CSS selectors, as I believe Jorge was pointing out. The period denotes a css class, and the colon denotes a pseudo-class or a pseudo-element. I haven't seen any webmasters using periods and colons as part of an id... which gives us an interesting option. Currently, underscores are used to form the ids of compound widgets. If we switched that to periods (or colons), we would open up the door for people to use underscores in ids, without losing anything in the process. This would however, potentially break some people's css, if they had used the existing underscore-laden id fields as css selectors in their css.
Of course, an even better option (if possible) would be to force people to use ids for their widgets that are unique throughout a page. There are a number of difficulties in this however (repeating fields pose a challenge, extra work needed to find parents/children of widgets) Alberto, could you comment on the idea of switching from underscores to periods for compound widget ids? -ian charnas On May 7, 12:47 pm, "Lee McFadden" <[EMAIL PROTECTED]> wrote: > On 5/7/07, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > > > > No underscores, are you sure? > > I always use underscores in my classes and ids and never have any > problems with the markup or CSS. Whether that means I'm using it as > per the specs or not is another matter, but it does work. > > -- > Lee McFadden > > blog:http://www.splee.co.uk > work:http://fireflisystems.com > skype: fireflisystems --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
