The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Comment tags (hide-script) still necessary?

Hey gang,

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:

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.

It seems that both articles haven't been updated lately, so I am just trying to find the current consensus regarding the matter. Pointers, URLs, etc. greatly appreciated.