mirror of
https://github.com/servo/servo.git
synced 2025-10-07 12:09:23 +01:00
Use internal mutability for Attr::value.
This commit is contained in:
parent
f6294a67c5
commit
c90a8529c5
8 changed files with 35 additions and 25 deletions
|
@ -694,7 +694,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
|
||||
let element: &JSRef<Element> = ElementCast::to_ref(node).unwrap();
|
||||
element.get_attribute(Null, "name").root().map_or(false, |mut attr| {
|
||||
attr.value_ref() == name.as_slice()
|
||||
attr.value().as_slice() == name.as_slice()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue