mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update to string-cache 0.3
This commit is contained in:
parent
9fcc9d9d3f
commit
53b638c0e2
170 changed files with 1309 additions and 1050 deletions
|
@ -50,8 +50,8 @@ impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection {
|
|||
if name.is_empty() { return None; }
|
||||
|
||||
let mut filter_map = self.collection.elements_iter().filter_map(|elem| {
|
||||
if elem.get_string_attribute(&atom!("name")) == name
|
||||
|| elem.get_string_attribute(&atom!("id")) == name {
|
||||
if elem.get_string_attribute(&local_name!("name")) == name
|
||||
|| elem.get_string_attribute(&local_name!("id")) == name {
|
||||
Some(elem)
|
||||
} else { None }
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue