Re: Javascript newbie - Please Help
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Sun, 30 Dec 2007 11:41:29 +0100
-Lost wrote:
If you do not know why you are using:
1. type="text/javascript"
2. // <![CDATA[
3. // ]]>
...then it is a good indication you should not be using them.
That statement, in it's generality, is wrong. For example, if the OP would
not know what the script-commented CDATA declaration would mean but would
use XHTML anyway out of the same lack of knowledge, then not using them
could easily render their markup invalid. The same goes for
`type="text/javascript"'. While HTML UAs might be more forgiving, the
markup would still not be valid which might have more serious consequences
in a UA with a more strict parser.
I'll not bother debating or arguing why it is or is not good -- I'm
sure someone else will though.
IOW, you are just babbling about something you don't (care to) understand
either.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
.
- Follow-Ups:
- Re: Javascript newbie - Please Help
- From: Randy Webb
- Re: Javascript newbie - Please Help
- From: -Lost
- Re: Javascript newbie - Please Help
- References:
- Javascript newbie - Please Help
- From: StefanoElle
- Re: Javascript newbie - Please Help
- From: Evertjan.
- Re: Javascript newbie - Please Help
- From: StefanoElle
- Re: Javascript newbie - Please Help
- From: -Lost
- Javascript newbie - Please Help
- Prev by Date: Re: Adding custom events to widget
- Next by Date: Re: Is it possible to delay document.write("blah blah ..")?
- Previous by thread: Re: Javascript newbie - Please Help
- Next by thread: Re: Javascript newbie - Please Help
- Index(es):