mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Implement 'control' attribute for <label> elements
This commit is contained in:
parent
3b50f21963
commit
f97d1d148b
8 changed files with 74 additions and 60 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue