mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use default doctype if non XmlDocument present (WEB-26324, WEB-26258)
This commit is contained in:
@@ -427,6 +427,10 @@ public class HtmlUtil {
|
||||
|
||||
public static boolean isHtml5Context(XmlElement context) {
|
||||
XmlDocument doc = PsiTreeUtil.getParentOfType(context, XmlDocument.class);
|
||||
if (doc == null && context != null) {
|
||||
return Html5SchemaProvider.getHtml5SchemaLocation()
|
||||
.equals(ExternalResourceManagerEx.getInstanceEx().getDefaultHtmlDoctype(context.getProject()));
|
||||
}
|
||||
return isHtml5Document(doc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user