[ci] yarn format

This commit is contained in:
matthewp 2021-08-03 17:35:43 +00:00 committed by GitHub Actions
parent 268a36f399
commit 260d03b1b6
2 changed files with 5 additions and 5 deletions

View file

@ -162,7 +162,7 @@ export default function (opts: TransformOptions): Transformer {
);
}
if(eoh.foundHeadOrHtmlElement || eoh.foundHeadAndBodyContent) {
if (eoh.foundHeadOrHtmlElement || eoh.foundHeadAndBodyContent) {
const topLevelFragment = {
start: 0,
end: 0,

View file

@ -35,7 +35,7 @@ export class EndOfHead {
if (this.found) {
if (!validHeadElements.has(name)) {
if(node.type === 'Element') {
if (node.type === 'Element') {
this.foundBodyElements = true;
}
}
@ -57,15 +57,15 @@ export class EndOfHead {
}
// Skip !doctype and html elements
if(beforeHeadElements.has(name)) {
if(name === 'html') {
if (beforeHeadElements.has(name)) {
if (name === 'html') {
this.html = node;
}
return;
}
if (!validHeadElements.has(name)) {
if(node.type === 'Element') {
if (node.type === 'Element') {
this.foundBodyElements = true;
}
this.firstNonHead = node;