Community
Participate
Working Groups
I have the following jsp content: <HTML> <BODY> <c:forEach var="item" items="${sitenav.items}" begin="0" step="1" varStatus="status"> <c:choose> <c:when test="${status.first}"> <div class="topNavRight"><ul> </c:when> <c:when test="${!item.group}"> <li><c:out value='<A href="${item.href}" class="${sitenav.navclass}" style="${sitenav.navstyle}">${item.label}</A>' escapeXml='false'/></li> <c:if test="${status.last}"> </ul></div> </c:if> </c:when> </c:choose> </c:forEach> </BODY> </HTML> Errors are being reported on the line </ul></div> no start tag (<div>) and no start tag (<ul>) Turning off HTML validation will stop the errors from being reported.
See also bug 157673 to consider from a "tag dependent" point of view. We'll also should re-examine those parts of the DOM parser that decides when it should implicitly end an HTML element.
Is this a duplicate of bug 152620?
Yes I would say that this defect is a duplicate of bug 152620 and the others (particularly 154858) that have been made a duplicate of it. But I think this will warrent more than a "note in the documentation" as pages built with JSTL are common.
*** This bug has been marked as a duplicate of bug 152620 ***