0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[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 = { const topLevelFragment = {
start: 0, start: 0,
end: 0, end: 0,

View file

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