Implement 'control' attribute for <label> elements

This commit is contained in:
Corey Farwell 2015-10-24 12:46:43 -04:00
parent 3b50f21963
commit f97d1d148b
8 changed files with 74 additions and 60 deletions

View file

@ -1147,7 +1147,7 @@ impl Document {
})
}
fn get_element_by_id(&self, id: &Atom) -> Option<Root<Element>> {
pub fn get_element_by_id(&self, id: &Atom) -> Option<Root<Element>> {
self.idmap.borrow().get(&id).map(|ref elements| (*elements)[0].root())
}
}