Empty text nodes are not allowed... so how to initialize with an empty paragraph?


I’m confused about how to comply with the no-empty text nodes rules while initializing some document to a single empty paragraph.

When parsing an initial empty document that I prepared, my parser is led to create several wrapping nodes then finally a paragraph with a text node with an empty string (defined, non null), which raises an exception.

I must be missing something as editors instance succeed in starting with such empty documents.

The idea is to not give such a paragraph any child nodes.