mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] yarn format
This commit is contained in:
parent
268a36f399
commit
260d03b1b6
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue