HighDots Forums  

Firefox and DOCTYPE messes javascript

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Firefox and DOCTYPE messes javascript in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Harri
 
Posts: n/a

Default Firefox and DOCTYPE messes javascript - 02-20-2007 , 01:04 AM






From what I have read, there is a permanent bug with Firefox to interpret
DOCTYPE declaration so that style sheet support changes unexpectedly. I have
a very simple javascript function which should toggle the visibility
parameter of a <div>:

DivId.style.visibility = 'hidden' (and 'visible').

Without DOCTYPE declaration it works fine on all browsers I tried, but add
any type of DOCTYPE declaration for the page and Firefox just ignores the
function. It appears to be limited to style parameter tweaking.

So why add the DOCTYPE, you may say. Obviously, without DOCTYPE Firefox has
some own ideas of interpreting style sheets as well, and it would be an even
worse situation.

Any ideas for solution??

Harri



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.