<code>, <div> & full javascript each have problems

Everybody (well almost) likes the idea of putting scripting in <script> tags.

<script> tags don't have to be coded as type="text/javascript"m as we
know from vb and other abominations.

let's just use the informal type "text/x-jquery-json" that contains 1 js object
or text/x-jquery-text" for an unquoted string of chars
and others...

WHAT do you think about this?



On 10/31/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
> >> Then, style div.accordion_init to be hidden, and you get the same
> >> effect without "misusing" the <code> tag.
> >
> > Poor people that have to use a text browser, a screenreader,
> > or simply have switched of CSS...
> >
> ...
> > Here's another solution that may be suitable for you: Do not put
> > all options into the class, instead simply subclass the accordion class:
> >
> > <dl class="accordion accDefault"> ... </dl>
> >
> > <dl class="accordion accExtra"> ... </dl>
>
> I share Klaus' concern on this. His suggestion of using classes to
> indirectly represent plugin parameters sounds like a good way to go. Text
> inside <code>, <div>, or any other tag is supposed to be content for the
> user to view. Text inside <script> or element attributes is meant for the
> developer.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to