summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/compiler/transform/head.ts2
-rw-r--r--packages/astro/src/compiler/transform/util/end-of-head.ts8
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/astro/src/compiler/transform/head.ts b/packages/astro/src/compiler/transform/head.ts
index 56a0006c7..f277b56f1 100644
--- a/packages/astro/src/compiler/transform/head.ts
+++ b/packages/astro/src/compiler/transform/head.ts
@@ -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,
diff --git a/packages/astro/src/compiler/transform/util/end-of-head.ts b/packages/astro/src/compiler/transform/util/end-of-head.ts
index 81f7faf80..ddc4b5136 100644
--- a/packages/astro/src/compiler/transform/util/end-of-head.ts
+++ b/packages/astro/src/compiler/transform/util/end-of-head.ts
@@ -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;