[444545] [validation] Ability to ignore custom html tag - code cleanup
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/SyntaxValidator.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/SyntaxValidator.java index adc1f1d..d50fe88 100644 --- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/SyntaxValidator.java +++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/SyntaxValidator.java
@@ -323,11 +323,10 @@ reportCorruptedEndTagError(info); } else { - if (!shouldValidateElementName(info.target)) - return; - - Segment errorSeg = FMUtil.getSegment(info.target, FMUtil.SEG_START_TAG_NAME); - report(UNDEFINED_NAME_ERROR, errorSeg, info.target); + if (shouldValidateElementName(info.target)) { + Segment errorSeg = FMUtil.getSegment(info.target, FMUtil.SEG_START_TAG_NAME); + report(UNDEFINED_NAME_ERROR, errorSeg, info.target); + } } } else {