[Webkit-unassigned] [Bug 9179] Implement select.options.add() method

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun Jun 25 20:38:13 PDT 2006


ddkilzer at kilzer.net changed:

           What    |Removed                     |Added
                 CC|                            |macdome at opendarwin.org

------- Comment #8 from ddkilzer at kilzer.net  2006-06-25 20:38 PDT -------
Anders, Eric, I need help/an idea on how to solve a specific problem.

The options.add() function can take one or two arguments, the second one being
optional.  The second argument is an integer, but when the second argument
(through JavaScript) is not provided, it is sent as zero, but that's
indistinguishable from a real argument.

What's the best way to handle a situation like this in the IDL?  Is there a way
to send an Integer object as a JSValue to the Node class method
(HTMLOptionsCollection::add()) instead of an 'int' so I know when it's not
set?  Or is there a way to pass in the number of original arguments sent via
the JavaScript function?  Thanks!

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list