From 6dd60db56f7113d79443df933cd92c7f7570d751 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Nov 2024 11:42:52 +0000 Subject: Add input to list of void elements --- lib/html/ast.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/html') diff --git a/lib/html/ast.js b/lib/html/ast.js index 4b9290d..df55e63 100644 --- a/lib/html/ast.js +++ b/lib/html/ast.js @@ -40,7 +40,8 @@ exports.forceWrite = forceWrite; var voidTagNames = { "br": true, "hr": true, - "img": true + "img": true, + "input": true }; function isVoidElement(node) { -- cgit v1.2.3