mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make Attr::prefix return an Option<&Prefix>
This commit is contained in:
parent
a377caa7e9
commit
fb206e2b10
3 changed files with 7 additions and 7 deletions
|
@ -820,7 +820,7 @@ impl Element {
|
|||
|
||||
// Step 2.
|
||||
for attr in element.attrs.borrow().iter() {
|
||||
if *attr.prefix() == Some(namespace_prefix!("xmlns")) &&
|
||||
if attr.prefix() == Some(&namespace_prefix!("xmlns")) &&
|
||||
**attr.value() == *namespace {
|
||||
return Some(attr.LocalName());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue