Closed
Bug 306843
Opened 19 years ago
Closed 19 years ago
a error is displayed at the javascript console when a script sets the value of an input to "" (empty string)
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: walter.php, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.7.10) Gecko/20050822 Firefox/1.0.6 (Debian package 1.0.6-3) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.7.10) Gecko/20050822 Firefox/1.0.6 (Debian package 1.0.6-3) I have write a quite simple page. When a keyup happens on the input box, the value of it is set to "" a empty string. That give me a error on javascript console. I've tested with Internet Explorer 6, Konqueror 3.4.2 and Opera 8.02 with javascript error enabled, and it's okey. Reproducible: Always Steps to Reproduce: 1.Type some text on the input 2. Look at the javascript console. Actual Results: no error displayed on the javascript console Expected Results: displayed the error: Erro: [Exception... "'Permissão negada para ler a propriedade XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://www.waltercruz.com/devel/mozilla/valueempty.html :: emptykey :: line 7" data: no] Arquivo-fonte: http://www.waltercruz.com/devel/mozilla/valueempty.html Linha: 7
Comment 1•19 years ago
|
||
No problem here, please test with a more recent version like Deer Park Alpha 2 (http://www.mozilla.org/projects/firefox).
Comment 2•19 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050901 Firefox/1.6a1 ID:2005090120 1. Doesn't occur on trunk for me. 2. Could be related to you using document.getElementById() (see bug 174617) 3. Could be a dupe of bug 236791.
| Reporter | ||
Comment 3•19 years ago
|
||
Yes, I've downloaded Deer Park Alpha 2 and doesn't occur to me too on Alpha 2 (In reply to comment #2)
Comment 4•19 years ago
|
||
WFM as per comment 3.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•