This may be somewhat off topic to Linux but since we are on the topic of
browser incompatibilities I thought I would share a recent Firefox / IE
javascript incompatibility that wasn't caught by any of the standards
checkers that I use. The specific instance was
<a href=somelink id=myID>
<div class=myClass>
text
</div>
</a>
the javascript was
myObj = getElementById("myID");
objHeight = myObj.offsetHeight;
Under ID this gave the height of the link. Under FireFox the height was
returned as 0. The solution was to move the id=myID into the div tag
and then both IE and FireFox reported the correct height. I don't know
if FireFox or IE is exhibiting the correct behavior (I assume it is
FireFox) but Tidy reported the page clean and FireFox did not report any
javascript errors and yet the behavior was different.
Also, the way IE and FireFox interpret CSS differently is as much of a
problem for me as the javascript issues. Anyone have recommendations
for a good CSS syntax checker? Or a medium to advance CSS tutorial?
--
David Suna
[EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]