From 790f1937b6f8d402255ffaf039d92143b05cd5dc Mon Sep 17 00:00:00 2001 From: Artem Gainanov Date: Thu, 4 Oct 2018 23:12:51 +0700 Subject: [PATCH] Allow lang completion only for html tag --- .../codeInsight/completion/HtmlCompletionContributor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {