Description
The "simple" textarea.ftl (I haven't checked the other templates) does not have the ending ">" in the correct location. As a result, maxlength and minlength are displayed within the textarea editor.
Current
<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" /> <#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" /> <#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" /> ><#rt/> <#-- !! WRONG LOCATION !! --> <#if parameters.nameValue??> <@s.property value="parameters.nameValue"/><#t/> </#if> <#if parameters.maxlength?has_content> maxlength="${parameters.maxlength}"<#rt/> </#if> <#if parameters.minlength?has_content> minlength="${parameters.minlength}"<#rt/> </#if> </textarea>
Should be
<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" /> <#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" /> <#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" /> <#if parameters.nameValue??> <@s.property value="parameters.nameValue"/><#t/> </#if> <#if parameters.maxlength?has_content> maxlength="${parameters.maxlength}"<#rt/> </#if> <#if parameters.minlength?has_content> minlength="${parameters.minlength}"<#rt/> </#if> ><#rt/> <#-- !! CORRECT LOCATION !! --> </textarea>
Attachments
Issue Links
- is duplicated by
-
WW-5198 textarea's maxlength attribute displays in tag's body
- Closed
- links to