|
-
Aug 25th, 2004, 03:17 PM
#1
Thread Starter
Fanatic Member
javascript: comments
Do we still need to use the HTML comments for script blocks or has that been revised?
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Aug 25th, 2004, 03:35 PM
#2
Fanatic Member
I don't think it's really necessary now, unless you want to serve content for really old browsers.
They were used for IE3 / NN 2 and older browser versions (not sure if these are the correct versions). They didn't understand JavaScript (actually the script-tag), and would've displayed the JS code as HTML content. Commenting the code out was the only way to prevent it.
For this purpose the noscript-tags were invented. Old browsers didn't understand those neither, so they'd display all content in between, while newer browsers skipped the content.
-
Aug 26th, 2004, 07:57 AM
#3
Frenzied Member
I've given up on supported browsers that don't run Javascript. Granted, I don't do anything truly fancy with it, so older browsers will just not have small functionality. If you haven't upgraded your browser in the past 3-4 years, then I don't feel sorry for you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|