commit | 5f60b89a452915b5402e10b553cef28115fb7e2b | [log] [tgz] |
---|---|---|
author | nitind <nitind> | Thu Jul 23 13:19:28 2009 +0000 |
committer | nitind <nitind> | Thu Jul 23 13:19:28 2009 +0000 |
tree | ee970c19ed277a47609f866e9ebc70c0749feed4 | |
parent | 1f30125ecf39ceeb98273c26d963b2cb6392314f [diff] |
[280094] HTMLAttributeValidator#validate should use model query extensions (limiter))
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 1c40fd0..f96eaf4 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
@@ -196,8 +196,13 @@ } } } - else { - // Check current value is valid among a known list + else if (CMDataType.ENUM.equals(attrType.getDataTypeName())) { + /* + * Check current value is valid among a known list. + * There may be enumerated values provided even when + * the datatype is not ENUM, but we'll only validate + * against that list if the type matches. + */ String[] enumeratedValues = attrType.getEnumeratedValues(); // several candidates are found. boolean found = false;