Partially implement parseAttributes: style and class