pub trait HTMLOptionsCollectionMethods {
// Required methods
fn Length(&self) -> u32;
fn SetLength(&self, value: u32, _can_gc: CanGc);
fn Add(
&self,
element: HTMLOptionElementOrHTMLOptGroupElement,
before: Option<HTMLElementOrLong>,
) -> Result<(), Error>;
fn Remove(&self, index: i32);
fn SelectedIndex(&self) -> i32;
fn SetSelectedIndex(&self, value: i32);
fn IndexedGetter(&self, index: u32) -> Option<Root<Dom<Element>>>;
fn IndexedSetter(
&self,
index: u32,
option: Option<&HTMLOptionElement>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn SupportedPropertyNames(&self) -> Vec<DOMString>;
fn NamedGetter(&self, name: DOMString) -> Option<Root<Dom<Element>>>;
}