Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 168607

Summary: false warning from html validator
Product: [WebTools] WTP Common Tools Reporter: Aieie Brazo <aieie_brazo>
Component: wst.validationAssignee: Nitin Dahyabhai <thatnitind>
Status: CLOSED DUPLICATE QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Aieie Brazo CLA 2006-12-19 17:02:07 EST
Build ID: 3.2.1

Steps To Reproduce:
Using wst 1.5.2.v20061111

1.
create a jsp using jstl in the following way
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

2.
add ah html tag nesting a jstl tag like in the following example
<a href="a.htm"<c:if test="${a == 'x'}"> class="current"</c:if>>txt txt</a>
3.
you get a warning from the html validator on the jstl nested tag saying: "Undefined attribute name (<c:if test="${a == 'x'}"> class="current"</c:if>)."

More information:
- it happens with every (or at least the most of) html tags
- if you disable the html validator, the warning disappears
- if you move the nested tag inside a html tag, the warning disappear: e.g.
<a href="a.htm" class="<c:if test="${a == 'x'}">current</c:if>">txt txt</a>

it looks the the html validator manager the parts to evaluate at runtime as if the were static
Comment 1 Nitin Dahyabhai CLA 2007-01-11 13:29:54 EST

*** This bug has been marked as a duplicate of bug 143209 ***
Comment 2 John Lanuti CLA 2007-04-03 11:47:18 EDT
Closing as part of mass query to clean up old resolved bugs in untargetted milestones.