I think i'm confusing things here. In addition to using dashes in class names and ids, I use them for custom property (attribute) names as well. specifically because I like to make my non-xhtml properties stand out, usually by prefixing them with the 'x-' prefix, similar to non-standard mime types and http headers. for example:
<table x-resourcetype="File" >....</table> John Resig wrote: >>> I actually use '-' myself, which doesn't conflict with CSS, but jQuery >>> still doesn't like them because of the attr() function translates >>> this-name into thisName. >>> >> I always use '-' in my ids and classes. This is really bad. I think that >> should be fixed! >> > > I'm really confused here - the .attr() function doesn't translate the > property values, only the property names. > > So doing id='foo-bar', that works - you can do #foo-bar just fine. > Does anyone have proof to the contrary? > > --John > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
