Thread:VisualEditor/Feedback/issue with tag extension

In a private wiki (1.24.2) i have a self programmed extension that adds a new tag to wiki language, example: The extension does return its content wrapped in &lt;div&gt;&lt;/div&gt; and therefore is editable via visual editor. Everything is working perfectly as long as i use a "begin"-tag and a "end"-tag with some content in between, like:

sometext

In many cases it is not needed at all to have some content between begin and end tag, so it is possible to write the tag in "short" notation, like:

However when the "short" notation is used, after editing the tag with visual editor and nothing has been added in content field (is still empty), the complete tag will be removed.

Is this a known limitation of visual editor or do i need to fix my extension to make it properly editable in visual editor ?

Thanks for any hint in right direction.