Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.26.00
-
None
Description
Reproduction path:
- open a Xinha field
- switch to htmlmode and remove all content
- add <br/>
- press save
In the console you can see that the field will contain something like:
<html>
<body>
<br/>
</body>
</html>
The expected behavior is that what is persisted in the repository is:
<html><body></body></html>
Furthermore, the algorithm for removing the <br/> elements from an 'empty' Xinha field seems wrong. For example:
- open a Xinha field
- switch to htmlmode and remove all content
- add <br/><br/><br/><br/>
- now every time you switch between WYSIWYG and htmlmode one <br/> element is removed.
Expected behaviour: <br/> are not removed when switching back and forth from WYSIWYG to source.