You are here: All articles » Programming » IE6 reserved word "functions" in class name
-
IE6 reserved word "functions" in class name
written: 16 years ago category: Programming Previous Next
Internet Explorer 6 has several excuses for not wanting to display certain DIVs or text in DIVs. Most of them arise from the internal hasLayout property which has to forced to -1 (on!) to unhide those HTML parts. I just came around another, very odd reason for why IE6 hides text in certain situations: CSS classnames which interfere with reserved words such as functions. Simple example:
<div class="functions">bla blub</div>
Just rename functions to whatever and you're done.
Leave a comment