diff --git a/xml/xml-analysis-impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownAttributeInspectionBase.java b/xml/xml-analysis-impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownAttributeInspectionBase.java index 24c5ae62af96..fccab3aa3cdc 100644 --- a/xml/xml-analysis-impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownAttributeInspectionBase.java +++ b/xml/xml-analysis-impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownAttributeInspectionBase.java @@ -127,7 +127,8 @@ public class HtmlUnknownAttributeInspectionBase extends HtmlUnknownElementInspec for (XmlUnknownAttributeQuickFixProvider fixProvider : XmlUnknownAttributeQuickFixProvider.EP_NAME.getExtensionList()) { quickfixes.addAll(fixProvider.getOrRegisterAttributeFixes(tag, name, holder, isFixRequired)); var providerHighlightType = fixProvider.getProblemHighlightType(tag); - if (providerHighlightType != ProblemHighlightType.GENERIC_ERROR_OR_WARNING) { + if (highlightType == ProblemHighlightType.GENERIC_ERROR_OR_WARNING + && providerHighlightType != ProblemHighlightType.GENERIC_ERROR_OR_WARNING) { highlightType = providerHighlightType; } }