Details
-
Bug
-
Status: Closed
-
Top
-
Resolution: Fixed
-
2.16.04
-
None
-
HST 2.05.03
Description
An existing Xinha field that is cleared still saves '<br/>' as content. This makes it tricky to check whether the field is empty or not (i.e. to render a heading for that field in a JSP or not).
Steps to reproduce:
1. create a new document that contains a field of type 'hippostd:html' (e.g. create a new news item in Go Green and use the field 'description')
2. enter the text 'test'
3. save and publish the document
The content of the field is now:
'<html>
<body>
<p>test</p>
</body>
</html>'
4. edit the field again and delete the text 'test'
5. save and publish the document
Expected behavior: the content of the field is now:
<html>
<body>
</body>
</html>
Actual behavior: the content of the field is now:
'<html>
<body>
<br/>
</body>
</html>'