diff --git a/xml/impl/src/com/intellij/codeInsight/completion/HtmlCompletionContributor.java b/xml/impl/src/com/intellij/codeInsight/completion/HtmlCompletionContributor.java index ce5652d84ce5..de19a4faaf1c 100644 --- a/xml/impl/src/com/intellij/codeInsight/completion/HtmlCompletionContributor.java +++ b/xml/impl/src/com/intellij/codeInsight/completion/HtmlCompletionContributor.java @@ -117,7 +117,7 @@ public class HtmlCompletionContributor extends CompletionContributor implements if ("target".equals(name) || "formtarget".equals(name)) { return TARGET; } - else if ("lang".equals(name) || "xml:lang".equals(name)) { + else if (tagName.equalsIgnoreCase("html") && ("lang".equals(name) || "xml:lang".equals(name)) ) { return LANG; } else if ("enctype".equals(name)) {