Javascript incoherence

Bug #115154 reported by Hugo Beauzée-Luyssen
4
Affects Status Importance Assigned to Milestone
firefox-3.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox

Hi,
My apologies if the bug has already been reported, or if it's my fault, but i'm almost sure it's not.

The incoherence i've noticed is the following :
I'm trying to generate a div, on which i can perform dragging.
If I use the following line :
div.onmousemove = function() {dragDiv(nbTextBox, this, event)}
firefox doesn't know the "event" variable.
Wheras if I use
div.setAttribute('onmousemove', 'dragthis(this, event)'); at the exact same place, it works perfectly.

ProblemType: Bug
Architecture: i386
Date: Thu May 17 04:39:11 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.3+1-0ubuntu2
PackageArchitecture: i386
SourcePackage: firefox
Uname: Linux Chouquettosaurus 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Revision history for this message
Hugo Beauzée-Luyssen (chouquette) wrote :
Changed in firefox:
assignee: nobody → mozilla-bugs
Revision history for this message
John Vivirito (gnomefreak) wrote :

I dont think i understand your saying that div.onmousemove = function() {dragDiv(nbTextBox, this, event)} should work but doesnt? Why should it work?

Changed in firefox:
status: Unconfirmed → Needs Info
Revision history for this message
John Vivirito (gnomefreak) wrote :

Thank you for the bug report. It has not been updated after a request for more information in the last 30 days, for this reason we are closing the report. Feel free to reopen it in the future if you have more information and if this is still an issue.

Changed in firefox (Ubuntu):
assignee: mozilla-bugs → nobody
Changed in firefox-3.0 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.