Ⓙⓐⓚⓔ schrieb: > if you really have to validate, and don't want each spec stuffed into > the javascript (script tag or onclick), consider putting the spec > inside a <code class="accordion_snippet"> tag (which would be hidden > in css) > and could be extracted as easily as the title attribute! > or a special dtd defined attribute. > > and it is code, so I see no problem with it! Anybody see any problem with > that??
This is a misuse of the code element of course. See, the code element designates a fragment of computer code to be *rendered*, not to be executed by the user agent. That's like putting all your jQuery code into a code element and eval it. This is not unobtrusive either. Just my $.002 -- Klaus _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
