From 9cc78a4e056f67cd4f3f0cb2ffe87896cfe30a69 Mon Sep 17 00:00:00 2001 From: Pablo Lozano Date: Tue, 30 May 2023 14:06:44 -0700 Subject: [PATCH] Add TEXTAREA as part of the void elements TEXTAREA should be considered a void element just like INPUT is --- src/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.js b/src/utilities.js index 36f0acce..defc97f7 100644 --- a/src/utilities.js +++ b/src/utilities.js @@ -38,7 +38,7 @@ export function isBlock (node) { export var voidElements = [ 'AREA', 'BASE', 'BR', 'COL', 'COMMAND', 'EMBED', 'HR', 'IMG', 'INPUT', - 'KEYGEN', 'LINK', 'META', 'PARAM', 'SOURCE', 'TRACK', 'WBR' + 'KEYGEN', 'LINK', 'META', 'PARAM', 'SOURCE', 'TRACK', 'WBR', 'TEXTAREA' ] export function isVoid (node) {