String an = attr.getNodeName();
if (PRESENTATION_ATTRIBUTES.contains(an)) {
if (result == null) {
DOMImplementation impl;
impl = elt.getOwnerDocument().getImplementation();
CSSStyleDeclarationFactory f;
f = (CSSStyleDeclarationFactory)impl;
result = f.createCSSStyleDeclaration();
}
result.setProperty(an, attr.getNodeValue(), "");
}
}
return result;