Closed Bug 324041 Opened 19 years ago Closed 19 years ago

IE DHTML/JavaScript incompatibility

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ben, Unassigned)

References

()

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 I wrote this Tic Tac Toe program using client-side DHTML + JavaScript for IE in 2002, and it works perfectly. Click on a square to put your X, and browser plays O. But when I run this under FireFox, it doesn't work. I have several other programs that use similar "technology", and they all also do not work under FireFox (but do with IE). See http://www.slivka.com/Code/Web/ for the list: http://www.slivka.com/Code/Web/life.htm http://www.slivka.com/Code/Web/particles.htm http://www.slivka.com/Code/Web/bounce.htm http://www.slivka.com/Code/Web/dhtml_styles.htm Reproducible: Always Steps to Reproduce: 1. Visit the URL above (ttt.htm) 2. Click on one of the Tic Tac Toe squares 3. An X should appear, but instead nothing happens. Actual Results: As above, works perfectly in IE (I'm running 6.0, but these were developed in 2002 against IE 5.0). Expected Results: See above. See above.
I wanted to file this against the Dynamic HTML engine and/or the JavaScript engine, but didn't see either of those called out as components. I assume this is a general compatibility issue for FireFox vs. IE.
window.event is IE-only (see bug 54341) and you're referencing by name/ID in the global scope (document.getElementById() should be used instead).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
document.all is also IE-only and again use document.getElementById() instead.
You need to log in before you can comment on or make changes to this bug.