Closed Bug 331625 Opened 19 years ago Closed 18 years ago

nsIDOMXULSelectControlElement needs an itemCount property

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: enndeakin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For bug 331505, nsIDOMXULSelectControlElement needs to have an itemCount property. Also, might as well add getItemAtIndex/getIndexOfItem methods too.
Also converts the usage in insertItemAt/removeItemAt to use them.
Attachment #255345 - Flags: superreview?(neil)
Attachment #255345 - Flags: review?(neil)
Comment on attachment 255345 [details] [diff] [review] add itemCount/getIndexOfItem/getItemAtIndex to interface >+ return this._getRadioChildren()[index] || null; I feel this is unsafe; someone could pass in hidden properties. I'd prefer to see a range check on index rather than the || null trick. >+ this.mRadioChildren = null; Well, ideally our xbl would do this... once it gets bound...
Attachment #255345 - Flags: superreview?(neil)
Attachment #255345 - Flags: superreview+
Attachment #255345 - Flags: review?(neil)
Attachment #255345 - Flags: review+
Tests will be part of bug 368097. Specific test can be found at http://www.xulplanet.com/ndeakin/tests/xts/misc/select.xul
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: