From acfb8f31fae6591e21fcdf00453e15a0393ff948 Mon Sep 17 00:00:00 2001 From: Dennis Ushakov Date: Mon, 17 Nov 2014 18:23:39 +0100 Subject: [PATCH] use namespace from tag, not empty one #WEB-14165 fixed --- .../html/impl/RelaxedHtmlFromSchemaElementDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/xml-psi-impl/src/com/intellij/html/impl/RelaxedHtmlFromSchemaElementDescriptor.java b/xml/xml-psi-impl/src/com/intellij/html/impl/RelaxedHtmlFromSchemaElementDescriptor.java index 1de12639ca1a..c8cba3f84d0e 100644 --- a/xml/xml-psi-impl/src/com/intellij/html/impl/RelaxedHtmlFromSchemaElementDescriptor.java +++ b/xml/xml-psi-impl/src/com/intellij/html/impl/RelaxedHtmlFromSchemaElementDescriptor.java @@ -36,7 +36,7 @@ public class RelaxedHtmlFromSchemaElementDescriptor extends XmlElementDescriptor } public static XmlAttributeDescriptor[] getCommonAttributeDescriptors(XmlTag context) { - final XmlNSDescriptor nsDescriptor = context != null ? context.getNSDescriptor("", false) : null; + final XmlNSDescriptor nsDescriptor = context != null ? context.getNSDescriptor(context.getNamespace(), false) : null; if (nsDescriptor != null) { for (XmlElementDescriptor descriptor : nsDescriptor.getRootElementsDescriptors(null)) { final String name = descriptor.getName();