return;
}
if (value.getLexicalUnitType() == LexicalUnit.SAC_ATTR)
{
final CSSAttrFunction attrFn = parseAttrFunction(value);
// ATTR function.
if (attrFn != null)
{
if (key == null)
{
// Log.warn("Got no key for attribute-function " + normalizedName);
setCompundAttrValue(normalizedName, attrFn, rule, important);
return;
}
rule.setPropertyValue(key, attrFn);
rule.setImportant(key, important);
}
return;
}
else if (isFunctionValue(value) && "attr".equals(value.getFunctionName()))
{
// ATTR function (extended version).
if (key == null)
{
logger.warn("Got no key for attribute-function " + normalizedName);
return;
}
final CSSAttrFunction attrFn = parseComplexAttrFn(value.getParameters());
if (attrFn != null)
{
rule.setPropertyValue(key, attrFn);
rule.setImportant(key, important);
}