Closed Bug 279230 Opened 20 years ago Closed 20 years ago

Javascript function add() causes "Not enough arguments [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"

Categories

(Toolkit Graveyard :: Error Console, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 194121

People

(Reporter: g.toedt, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If you try to use the javascript function add(SomeOption) it causes:
uncaught exception: [Exception... "Not enough arguments
[nsIDOMHTMLSelectElement.add]"  nsresult: "0x80570001
(NS_ERROR_XPC_NOT_ENOUGH_ARGS)"

You can fix that bug if you use a second argument for that function:
add(SomeOption,null)

It looks like the default for a missing second argument isn't set properly.


Reproducible: Always

Steps to Reproduce:
1. Write a javascript
2. Try to add an option to an element in your page


Actual Results:  
uncaught exception: [Exception... "Not enough arguments
[nsIDOMHTMLSelectElement.add]"  nsresult: "0x80570001
(NS_ERROR_XPC_NOT_ENOUGH_ARGS)"

Expected Results:  
added the option to the form element
Summary: Javascript function ad() causes "Not enough arguments [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" → Javascript function add() causes "Not enough arguments [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"

*** This bug has been marked as a duplicate of 194121 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.