Personal tools
You are here: Home   Bugs   replaceHTML doesn't replace '  
 
Document Actions

#8 — replaceHTML doesn't replace '

State Unconfirmed
Release:
Area Server side kss.core
Issue type Bug
Severity Medium
Submitted by Danny Bloemendaal
Submitted on 2007-07-12
Responsible
Target release:
Return to tracker
Last modified on 2007-07-12 by Danny Bloemendaal
If you try to replace a node with nothing ('') then the action doesn't do anything. I think it should empty the node instead of doing nothing. I have a macro that renders a portlet. The user can manipulate elements directly in the porltet (removing items) and at some point there is nothing to display in the portlet. In that case the macro just returns '' telling that the portlet shouldn't be displayed. Of course you can check this and do a deleteNode but I believe that replace should do just what it says it does: replacing.