[143209] HTMLAttributeValidator has reversed JSP-aware attribute name and value checks?
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java
index 63f5831..6c12410 100644
--- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java
@@ -116,7 +116,7 @@
// No attr declaration was found. That is, the attr name is
// undefined.
// but not regard it as undefined name if it includes JSP
- if (hasJSPRegion(((IDOMNode) a).getNameRegion())) {
+ if (!hasJSPRegion(((IDOMNode) a).getNameRegion())) {
rgnType = REGION_NAME;
state = ErrorState.UNDEFINED_NAME_ERROR;
}
@@ -179,7 +179,7 @@
// actualValue is invalid.
// but not regard it as undefined value if it
// includes JSP.
- if (hasJSPRegion(((IDOMNode) a).getValueRegion())) {
+ if (!hasJSPRegion(((IDOMNode) a).getValueRegion())) {
rgnType = REGION_VALUE;
state = ErrorState.UNDEFINED_VALUE_ERROR;
}