RTE is shortening div tags
We use the source edit options (misctools) in an overlaid Rich Text Editor component.
It works well for the most part, however empty div tags are getting shortened, so:
<div class="some-data-class"></div>
becomes:
<div class="some-data-class" />
This is breaking inclusion of dynamic markup via our javascript.
The div tag is not a void element, so I'm wondering why this is happening.
I've looked into settings for the RTE, but have yet to find a setting that would be related.
I think it may be related more to the XSS API. If I change the sightly display context to "unsafe" the issue goes away.
We cannot leave it in this context though as we need to ensure the XSS policy is enforced in all our RTEs.
Is there a XSS rule I can apply to prevent the shortening?