if (type == CSSPrimitiveValue.CSS_IDENT &&
value.equalsIgnoreCase(CSS_NONE_VALUE)) {
return NONE_VALUE;
}
if (type == CSSPrimitiveValue.CSS_URI) {
return new ImmutableString(type, value);
}
throw CSSDOMExceptionFactory.createDOMException
(DOMException.INVALID_ACCESS_ERR,
"invalid.identifier",
new Object[] { value, getPropertyName() });