The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Browse by Tags

All Tags » javascript » XHTML » xml (RSS)
  • Re: Browser-safe JavaScript

    IIRC that's required if you want the code to work unchanged in both ancient browsers that try to display the content of script elements (the reason for the common "<!--" "// -->" hack), and in documents that are served with an XML Content-Type (where "<!--" "// -->" really is a comment, so...
    Posted to Forum by iwpg on 03-09-2007
Page 1 of 1 (1 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems