javascript can't complete a for..in.. loop (mootools 1.11 in use)

Bug #122074 reported by rocasan
4
Affects Status Importance Assigned to Milestone
firefox-3.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox

I was trying to complete a loop with the for..in.. sentence. In all the others browsers (iexplorer, opera, safari for windows, opera for linux) the loop finish without errors, but in Firefox (for windows and Linux) appears the error:

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLInputElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/proxectos/probas/lenzo.js :: debugEl :: line 35" data: no]

The html code only includes 2 external JavaScript code: the mootools library and other that includes this function (it try to extract information about a object)

function debugEl (elem) {
 var aux = '';
 for(iter in elem) {
  if(iter && elem[iter]) // the error appears here !!
   aux += "<br />\n· '"+iter+"' : "+elem[iter];
 }
 return aux.length+"<br /><br />\n\n"+aux;
}

it seams to crash when 'elem' take a html element value.

is it a mootools error?

ProblemType: Bug
Architecture: i386
Date: Mon Jun 25 10:59:10 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.4+1-0ubuntu1
PackageArchitecture: i386
SourcePackage: firefox
Uname: Linux santi-linux 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux

Revision history for this message
rocasan (rocasan-gmail) wrote :
Revision history for this message
John Vivirito (gnomefreak) wrote :

i think i have seen this bug reported in launchbad already. taggging as likely-dup

Changed in firefox:
status: New → Incomplete
Revision history for this message
John Vivirito (gnomefreak) wrote :

Assigned correct team.

Changed in firefox:
assignee: nobody → mozilla-bugs
Revision history for this message
John Vivirito (gnomefreak) wrote :

Thank you for taking the time to file this ubg report with us. Closing due to age. If this is still a problem in 3.0.7 please reopen this bug.
Also please reopen with all new information on how to reproduce this bug by giving us step by step instructions.
We also need what happens what is expected to happen.
To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

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.