[thelist] Javascript newbie - errors

Jeff Howden jeff at jeffhowden.com
Sat Oct 25 21:41:42 CDT 2003


simon,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Simon Willison [mailto:cs1spw at bath.ac.uk]
>
> > wow, like i needed another reason to shake the
> > banishing stick at gecko-based garbage.
>
> !!!?
>
> Ignoring that remark for the sake of world piece, I'd
> like to note that Gecko does document.write() just fine
> when not in ultra-strict application/xml+xhtml mode (in
> case anyone was misled by the above).
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

well, if anyone was misled, it wasn't be design.  the statement was made
that using application/xml+xhtml would break document.write().  i think
that's dumb (along with a slew of other things gecko-based browsers do,
netscape has done, etc.).

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> I've stopped worrying about browsers that don't know
> what a style tag is. Anything released since 1996 should
> at least be aware of the fact that stuff inside a
> <style> tag shouldn't be rendered - off the top of my
> head the only browser I can think of that doesn't know
> to ignore <style> and might still be around is Netscape
> 3. At any rate, if all you risk revealing is a single
> @import line you can be sure that anyone using a browser
> that ancient won't be phased by it, seeing as most of
> the other pages on the commercial web will have much
> worse problems.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

speaking of comments within <style> and <script> blocks, is there a place
online that does a definitive breakdown of when to use and not to use
comments, what kind (regular html vs w/ cdata notations), etc.?

.jeff

------------------------------------------------------
Jeff Howden - Web Application Specialist
Resume - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/



More information about the thelist mailing list