mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix tests
This commit is contained in:
@@ -229,9 +229,7 @@ public class HtmlParsing {
|
||||
// Done header, start content
|
||||
|
||||
boolean isInlineTagContainer = HtmlUtil.isInlineTagContainerL(tagName);
|
||||
boolean isOptionalTagEnd = HtmlUtil.isOptionalEndForHtmlTagL(tagName) ||
|
||||
"body".equalsIgnoreCase(tagName) ||
|
||||
"html".equalsIgnoreCase(tagName);
|
||||
boolean isOptionalTagEnd = HtmlUtil.isOptionalEndForHtmlTagL(tagName);
|
||||
|
||||
PsiBuilder.Marker firstBlockChild = null;
|
||||
|
||||
@@ -364,7 +362,7 @@ public class HtmlParsing {
|
||||
|
||||
xmlText = terminateText(xmlText);
|
||||
|
||||
if (isOptionalTagEnd) {
|
||||
if (isOptionalTagEnd || "body".equalsIgnoreCase(tagName) || "html".equalsIgnoreCase(tagName)) {
|
||||
if (firstBlockChild != null) {
|
||||
tag.doneBefore(XmlElementType.HTML_TAG, firstBlockChild);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user