When the document doesn’t round-trip properly through HTML, that usually suggests a mismatch between your toDOM and parseDOM specs. In this case, it looks like the color is written to the DOM in the class and style attributes, but parseDOM tries to read it from the color attribute.