Results 1 to 3 of 3
Feb 14, 2007, 12:45 #1
- Join Date
- Oct 2003
- Alameda, CA
- 0 Post(s)
- 0 Thread(s)
Comment tags (hide-script) still necessary?
Trying to find facts that support the reasoning of not putting comment tags in JS blocks are okay if support for very, very old browsers is not a concern. The list of the browsers supported are as follows: IE6+/PC, Safari (up-to-date), and FF. I found the following article while searching:
Which cites http://www.w3.org/TR/xhtml1/#C_4
C.4. Embedded Style Sheets and Scripts
Use external style sheets if your style sheet uses < or & or ]]> or --. Use external scripts if your script uses < or & or ]]> or --. Note that XML parsers are permitted to silently remove the contents of comments. Therefore, the historical practice of "hiding" scripts and style sheets within "comments" to make the documents backward compatible is likely to not work as expected in XML-based user agents.