coding style in htmlinputelement, TODO in button

add comment, empty line in inputelement
add button type TODO in buttonelement
This commit is contained in:
yodalee 2015-02-03 20:48:11 +08:00
parent 0f2b1c4856
commit 5f82780d3a
2 changed files with 4 additions and 0 deletions

View file

@ -53,6 +53,7 @@ impl HTMLButtonElement {
fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLButtonElement {
HTMLButtonElement {
htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLButtonElement, localName, prefix, document),
//TODO: implement button_type in after_set_attr
button_type: Cell::new(ButtonType::ButtonSubmit)
}
}