IDEA-246664 Thymeleaf: Unknown html tag th:block

GitOrigin-RevId: c17067df891e7c834cc6942c2e47afdab1778358
This commit is contained in:
sergey.vasiliev
2022-01-12 09:11:37 +01:00
committed by intellij-monorepo-bot
parent 0076f858ba
commit 5b14705ff6

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.psi.impl.source.html.dtd;
import com.intellij.html.RelaxedHtmlNSDescriptor;
@@ -27,8 +27,8 @@ import java.util.Map;
*/
public class HtmlNSDescriptorImpl implements XmlNSDescriptor, DumbAware, XmlNSTypeDescriptorProvider {
private final XmlNSDescriptor myDelegate;
private final boolean myRelaxed;
private final boolean myCaseSensitive;
protected final boolean myRelaxed;
protected final boolean myCaseSensitive;
private static final SimpleFieldCache<Map<String, HtmlElementDescriptorImpl>, HtmlNSDescriptorImpl> myCachedDeclsCache =
new SimpleFieldCache<>() {
@@ -101,12 +101,17 @@ public class HtmlNSDescriptorImpl implements XmlNSDescriptor, DumbAware, XmlNSTy
for (XmlElementDescriptor element : elements) {
decls.put(
element.getName(),
new HtmlElementDescriptorImpl(element, myRelaxed, myCaseSensitive)
createHtmlElementDescriptor(element)
);
}
return decls;
}
@NotNull
protected HtmlElementDescriptorImpl createHtmlElementDescriptor(XmlElementDescriptor element) {
return new HtmlElementDescriptorImpl(element, myRelaxed, myCaseSensitive);
}
@Override
public XmlElementDescriptor getElementDescriptor(@NotNull XmlTag tag) {
XmlElementDescriptor xmlElementDescriptor = getElementDescriptorByName(tag.getLocalName());