/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html; /**
DOM option elements elements share all of the properties and methods of other HTML elements described in the element section. They also have the specialized interface HTMLOptionElement (or HTML 4 HTMLOptionElement).
No methods are defined on this interface.
selected
HTML attribute. which indicates whether the option is selected by default. */
var defaultSelected : Bool;
/** Reflects the value of the
disabled
HTML attribute, which indicates that the option is unavailable to be selected. An option can also be disabled if it is a child of an <optgroup>
element that is disabled. */
var disabled : Bool;
/** If the option is a descendent of a <select>
element, then this property has the same value as the form
property of the corresponding {{DomXref("HTMLSelectElement") object; otherwise, it is null. */
var form(default,null) : FormElement;
/** The position of the option within the list of options it belongs to, in tree-order. If the option is not part of a list of options, the value is 0. */
var index(default,null) : Int;
/** Reflects the value of the
label
HTML attribute, which provides a label for the option. If this attribute isn't specifically set, reading it returns the element's text content. */
var label : String;
/** Indicates whether the option is selected. */
var selected : Bool;
/** Contains the text content of the element. Setter throws DOMException. */
var text : String;
/** Reflects the value of the
value
HTML attribute, if it exists; otherwise reflects value of the textContent
IDL attribute. */
var value : String;
function new() : Void;
}