I don't think that there is such a case generated by the browsers upon an enter press in an empty nested `li`.

Such a case could only come from existing code.

That should be handled by the parser. Right?