mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-59593: Strange errors in mxml document
This commit is contained in:
@@ -45,6 +45,8 @@ public class XMLExternalAnnotator implements ExternalAnnotator, Validator.Valida
|
||||
XmlNSDescriptor nsDescriptor = rootTag == null ? null : rootTag.getNSDescriptor(rootTag.getNamespace(), false);
|
||||
|
||||
if (nsDescriptor instanceof Validator && !HtmlUtil.isHtml5Document(document)) {
|
||||
XmlFile descriptorFile = nsDescriptor.getDescriptorFile();
|
||||
if (descriptorFile != null && !descriptorFile.isPhysical()) return;
|
||||
((Validator<XmlDocument>)nsDescriptor).validate(document, this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user