Author: erwan
Date: Wed May 19 18:15:46 2010 New Revision: 946322 URL: http://svn.apache.org/viewvc?rev=946322&view=rev Log: XHTML validation errors round 2++ (content) OFBIZ-3755 https://issues.apache.org/jira/browse/OFBIZ-3755 Modified: ofbiz/trunk/applications/content/data/TemplateData.xml ofbiz/trunk/applications/content/template/HelpTemplate.ftl ofbiz/trunk/applications/content/template/mime-type/image.ftl ofbiz/trunk/applications/content/webapp/content/cms/CMSContentEdit.ftl ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl Modified: ofbiz/trunk/applications/content/data/TemplateData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/data/TemplateData.xml?rev=946322&r1=946321&r2=946322&view=diff ============================================================================== --- ofbiz/trunk/applications/content/data/TemplateData.xml (original) +++ ofbiz/trunk/applications/content/data/TemplateData.xml Wed May 19 18:15:46 2010 @@ -196,7 +196,7 @@ ResourceId=${subDataResourceId?if_exists > <#assign drDataResourceId=content.dataResourceId?if_exists/> </@traverseSubContentCache> - <img src="<@ofbizUrl>/img?imgId=${drDataResourceId?if_exists}</@ofbizUrl>"/> + <img src="<@ofbizUrl>/img?imgId=${drDataResourceId?if_exists}</@ofbizUrl>" alt=""/> </td> </tr> </table> @@ -447,7 +447,7 @@ ${txt} <textData><![CDATA[<table> <tr> <td> - <img src="<@ofbizContentUrl><@renderSubContentCache mapKey="IMAGE" wrapTemplateId=""/></@ofbizContentUrl>"/> + <img src="<@ofbizContentUrl><@renderSubContentCache mapKey="IMAGE" wrapTemplateId=""/></@ofbizContentUrl>" alt="" /> </td> </tr> </table> Modified: ofbiz/trunk/applications/content/template/HelpTemplate.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/HelpTemplate.ftl?rev=946322&r1=946321&r2=946322&view=diff ============================================================================== --- ofbiz/trunk/applications/content/template/HelpTemplate.ftl (original) +++ ofbiz/trunk/applications/content/template/HelpTemplate.ftl Wed May 19 18:15:46 2010 @@ -88,7 +88,7 @@ under the License. <#assign caption = item/> </#if> </#list> - <img src="${fileref}" <#if depth?has_content> height="${depth}"</#if> <#if width?has_content> width="${width}"</#if> <#if alt?has_content> alt="${alt}"</#if>/> + <img src="${fileref}" <#if depth?has_content> height="${depth}"</#if> <#if width?has_content> width="${width}"</#if> alt="<#if alt?has_content>${alt}</#if>" /> <#if caption?has_content><div>${caption}</div></#if> </#macro> Modified: ofbiz/trunk/applications/content/template/mime-type/image.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/mime-type/image.ftl?rev=946322&r1=946321&r2=946322&view=diff ============================================================================== --- ofbiz/trunk/applications/content/template/mime-type/image.ftl (original) +++ ofbiz/trunk/applications/content/template/mime-type/image.ftl Wed May 19 18:15:46 2010 @@ -16,4 +16,4 @@ specific language governing permissions and limitations under the License. --> -<img src="/content/control/stream?contentId=${contentId}"/> \ No newline at end of file +<img src="/content/control/stream?contentId=${contentId}" alt=""/> \ No newline at end of file Modified: ofbiz/trunk/applications/content/webapp/content/cms/CMSContentEdit.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/cms/CMSContentEdit.ftl?rev=946322&r1=946321&r2=946322&view=diff ============================================================================== --- ofbiz/trunk/applications/content/webapp/content/cms/CMSContentEdit.ftl (original) +++ ofbiz/trunk/applications/content/webapp/content/cms/CMSContentEdit.ftl Wed May 19 18:15:46 2010 @@ -191,7 +191,7 @@ ${menuWrapper.renderMenuString()} <td> <table width="100%" border="0" cellpadding="0" cellspacing='0'> <tr><td align="right" nowrap="nowrap"><div class='tabletext'><b>Image</b></div></td><td> </td><td><div class='tabletext'> - <img src="<@ofbizUrl>img?imgId=${imgDataResourceId?if_exists}</@ofbizUrl>" /> + <img src="<@ofbizUrl>img?imgId=${imgDataResourceId?if_exists}</@ofbizUrl>" alt="" /> <div></td></tr> </table> </td> Modified: ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl?rev=946322&r1=946321&r2=946322&view=diff ============================================================================== --- ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl (original) +++ ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl Wed May 19 18:15:46 2010 @@ -312,6 +312,6 @@ under the License. <a href="<@ofbizUrl>EditSurveyQuestions?surveyId=${requestParameters.surveyId}&surveyQuestionId=${surveyQuestionOption.surveyQuestionId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonNew} ${uiLabelMap.ContentSurveyOption}]</a> </#if> ${createSurveyOptionWrapper.renderFormString()} - </#if> </div> -</div> \ No newline at end of file +</div> +</#if> |
Free forum by Nabble | Edit this page |