[Javascript] OT: W3C

Chris T christ at saeweb.com
Wed May 26 10:55:22 CDT 2004


>  - For most uses, people tend to use single quotes in JavaScript. This
makes for good JavaScript/HTML compatibility. JavaScript can be contained in
an attribute value, and HTML can be contained within a JavaScript string,
without requiring escaping.


I wouldn't say that's a good generalization...  Maybe if you're using inline
JavaScript inside an attribute that already is double-quoted, yeah, but a
very small % of your JS should be inline for all intents and purposes.




More information about the Javascript mailing list