diff --git a/accessible/windows/sdn/sdnAccessible.cpp b/accessible/windows/sdn/sdnAccessible.cpp index 38e2e5c22ce4..d868593a6c2a 100644 --- a/accessible/windows/sdn/sdnAccessible.cpp +++ b/accessible/windows/sdn/sdnAccessible.cpp @@ -149,10 +149,11 @@ sdnAccessible::get_attributes(unsigned short aMaxAttribs, aAttribValues[index] = aAttribNames[index] = nullptr; nsAutoString attributeValue; - const nsAttrName* name = elm->GetAttrNameAt(index); - aNameSpaceIDs[index] = static_cast(name->NamespaceID()); - aAttribNames[index] = ::SysAllocString(name->LocalName()->GetUTF16String()); - elm->GetAttr(name->NamespaceID(), name->LocalName(), attributeValue); + nsAttrInfo attr = elm->GetAttrInfoAt(index); + attr.mValue->ToString(attributeValue); + + aNameSpaceIDs[index] = static_cast(attr.mName->NamespaceID()); + aAttribNames[index] = ::SysAllocString(attr.mName->LocalName()->GetUTF16String()); aAttribValues[index] = ::SysAllocString(attributeValue.get()); }