> The main reason I'm trying to avoid non-spec attributes is > for code longevity.
Kurt suggested the class attribute. Any reason not to use it? It seems intended for this purpose: http://www.w3.org/TR/html4/struct/global.html#h-7.5.2 The class attribute has several roles in HTML: * As a style sheet selector (when an author wishes to assign style information to a set of elements). * For general purpose processing by user agents. Your example: <code>accordion:false,showSpeed:'slow',hideAll:true</code> <dl class="accordion"> <dt>click me</dt> <dd>to show me</dd> </dl> Could be coded something like: <dl class="Accordion accordion:false,showSpeed:'slow',hideAll:true"> <dt>click me</dt> <dd>to show me</dd> </dl> Then you could pick up your parameter string with: var paramString = $('.Accordion').attr('class').replace( /\w+ /, '' ) -Mike _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
