Skip to content

Commit

Permalink
Add input to list of void elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Nov 30, 2024
1 parent c7f99e7 commit 6dd60db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/html/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ exports.forceWrite = forceWrite;
var voidTagNames = {
"br": true,
"hr": true,
"img": true
"img": true,
"input": true
};

function isVoidElement(node) {
Expand Down

0 comments on commit 6dd60db

Please sign in to comment.