Implement "reset algorithm" for <select>.

This commit is contained in:
Corey Farwell 2016-10-13 23:34:55 -04:00
parent 6c28d4446a
commit a45e1d9d95
2 changed files with 11 additions and 2 deletions

View file

@ -634,8 +634,7 @@ impl HTMLFormElement {
// {}
//}
NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLSelectElement)) => {
// Unimplemented
{}
child.downcast::<HTMLSelectElement>().unwrap().reset();
}
NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTextAreaElement)) => {
child.downcast::<HTMLTextAreaElement>().unwrap().reset();