From 7d99e4fd0b2774a4d2d02ed02fd84dd929935b93 Mon Sep 17 00:00:00 2001 From: Dale Alexander Webb Date: Fri, 27 May 2022 20:31:46 +0100 Subject: [PATCH] fix: html placeholder attribute position in input node (#58) --- __tests__/html/htmlMain.test.ts | 2 +- src/html/htmlMain.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/html/htmlMain.test.ts b/__tests__/html/htmlMain.test.ts index d8b18092..2e2bbb27 100644 --- a/__tests__/html/htmlMain.test.ts +++ b/__tests__/html/htmlMain.test.ts @@ -144,7 +144,7 @@ describe("HTML Main", () => { frameNode.name = "this is the InPuT"; expect(htmlMain([frameNode])).toEqual( - ' placeholder="username"' + '' ); }); diff --git a/src/html/htmlMain.ts b/src/html/htmlMain.ts index e9bd7455..d2b74b25 100644 --- a/src/html/htmlMain.ts +++ b/src/html/htmlMain.ts @@ -204,7 +204,7 @@ export const htmlContainer = ( .border(node); if (isInput) { - return `\n${children}`; + return `\n`; } if (builder.style || additionalStyle) {