Reputation: 11
jQuery works fine in all browsers, except in Safari (both Mac and PC latest versions). In Safary, the jQuery code is displayed as if it was html text, albeit not formatted. I tried using jQuery instead of $, but no success.
See http://test.besaltnlight.ca for an example (use Safari to see the jQuery code).
Any help would be appreciated.
Upvotes: 0
Views: 166
Reputation: 887345
Your <script>
tag is incorrectly written as a self-closing tag:
<script type="text/javascript" />
Safari correctly interprets that is an empty self-closed tag, so all of the text after it is treated as normal text, not Javascript code.
Upvotes: 3