mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Doc named getter improvements
This commit is contained in:
parent
4b750ca0d0
commit
e48eac6879
10 changed files with 405 additions and 111 deletions
|
@ -266,7 +266,7 @@ impl DocumentOrShadowRoot {
|
|||
}
|
||||
}
|
||||
|
||||
/// Remove any existing association between the provided id and any elements in this document.
|
||||
/// Remove any existing association between the provided id/name and any elements in this document.
|
||||
pub fn unregister_named_element(
|
||||
&self,
|
||||
id_map: &DomRefCell<HashMap<Atom, Vec<Dom<Element>>>>,
|
||||
|
@ -294,7 +294,7 @@ impl DocumentOrShadowRoot {
|
|||
}
|
||||
}
|
||||
|
||||
/// Associate an element present in this document with the provided id.
|
||||
/// Associate an element present in this document with the provided id/name.
|
||||
pub fn register_named_element(
|
||||
&self,
|
||||
id_map: &DomRefCell<HashMap<Atom, Vec<Dom<Element>>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue