mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -365,7 +365,7 @@ impl Page {
|
|||
anchors.find(|node| {
|
||||
let elem: &JSRef<Element> = ElementCast::to_ref(node).unwrap();
|
||||
elem.get_attribute(Null, "name").root().map_or(false, |attr| {
|
||||
attr.deref().value_ref() == fragid.as_slice()
|
||||
attr.deref().value().as_slice() == fragid.as_slice()
|
||||
})
|
||||
}).map(|node| Temporary::from_rooted(ElementCast::to_ref(&node).unwrap()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue