Introduce AttrHelpersForLayout::namespace

This commit is contained in:
Anthony Ramine 2020-03-31 14:06:22 +02:00
parent 47c9f19121
commit 3e875ce3eb
2 changed files with 7 additions and 1 deletions

View file

@ -578,7 +578,7 @@ pub unsafe fn get_attr_for_layout<'dom>(
.iter()
.find(|attr| {
let attr = attr.to_layout();
name == attr.local_name() && (*attr.unsafe_get()).namespace() == namespace
name == attr.local_name() && namespace == attr.namespace()
})
.map(|attr| attr.to_layout())
}