Motivation for DOMOutputSpec


I noticed instead of a DOMOutputSpec I can also directly return { dom:..., contentDOM: ...}

I was wondering, is there any benefit to use DOMOutputSpec? Or is it mostly “syntactic sugar” to create more succint nodes and a matter of preference whether to use DOMOutputSpec vs. a real dom node?

It’s just more succinct.

Clear, thanks!