case LexicalUnit.SAC_IDENT:
case LexicalUnit.SAC_STRING_VALUE:
ImmutableValueList list = new ImmutableValueList();
do {
if (lu.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE) {
list.append(new CSSOMValue(stringFactory,
stringFactory.createValue(lu)));
if (lu != null) {
lu = lu.getNextLexicalUnit();
}
} else {
LexicalUnit l = lu;
String s = l.getStringValue();
lu = lu.getNextLexicalUnit();
if (lu != null &&
lu.getLexicalUnitType() == LexicalUnit.SAC_IDENT) {
do {
s += " " + lu.getStringValue();
lu = lu.getNextLexicalUnit();
} while (lu != null &&
lu.getLexicalUnitType() ==
LexicalUnit.SAC_IDENT);
ImmutableValue v;
v = new ImmutableString(CSSPrimitiveValue.CSS_STRING,
s);
list.append(new CSSOMValue(stringFactory, v));
} else {
if (values.get(s.toLowerCase().intern()) != null) {
list.append
(new CSSOMValue(identFactory,
identFactory.createValue(l)));
} else {
s = "\"" + s + "\"";
list.append
(new CSSOMValue(stringFactory,
stringFactory.createValue(s)));
}
}
}
if (lu != null) {