[Bug 122074] javascript can't complete a for..in.. loop (mootools 1.11 in use)

rocasan rocasan at gmail.com
Mon Jun 25 09:14:45 UTC 2007


Public bug reported:

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

** Affects: firefox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
javascript can't complete a for..in.. loop (mootools 1.11 in use)
https://bugs.launchpad.net/bugs/122074
You received this bug notification because you are a member of Mozilla
Bugs, which is a bug contact for firefox in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list