Olaf Bosch schrieb: > Michael Geary schrieb: >> The main reason I'm trying to avoid non-spec attributes is >> for code longevity. > > What you think over this: > > <dl> > <dt> > <a rel="accordion:false,showSpeed:'slow',hideAll:true" /> > click me > </dt> > <dd> > to show me > </dd> > </dl> > > Valid, nothing to hide, or?
Hi Olaf, from a strictly formal view it is valid. But semantically wise it breaks. "The rel and rev attributes play complementary roles -- the rel attribute specifies a forward link and the rev attribute specifies a reverse link." http://www.w3.org/TR/html401/struct/links.html#h-12.3.1 So the rel and rev attributes serve the purpose to link two documents together and browsers may provide such information. For example via additional next/back buttons in a series of documents. Opera for example does that pretty well with the HTML specification (although that is solved with link elements). Or maybe a search engine may provide some extra valuable information in its search result. A rev/rel link with some strange information in it is therefore useless to the user, i.e. the user is possibly confronted with some totally useless information. I really really wonder why you don't want to use the class attribute, which is the intended attribute for such things... -- Klaus _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
