Skip to content

Commit

Permalink
Remove elements that are no longer void
Browse files Browse the repository at this point in the history
Some obsolete elements got their void status takes away,
meaning `document.createElement(x).outerHTML` generates an opening and
closing tag, so this fix matches that behavior.

Related-to: whatwg/html#1095
Related-to: whatwg/html#2319

Closes GH-6.
Closes GH-7.
  • Loading branch information
mohd-akram authored May 19, 2023
1 parent 983ea57 commit 7b5cb87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ export const htmlVoidElements = [
'image',
'img',
'input',
'isindex',
'keygen',
'link',
'menuitem',
'meta',
'nextid',
'param',
'source',
'track',
Expand Down
6 changes: 2 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ List of HTML void tag names.

This is a list of all void tag names according to HTML.

> 👉 **Note**: includes ancient (such as `nextid` and `basefont`) tag names too.
> 👉 **Note**: includes ancient (such as `basefont` and `bgsound`) tag names
> too.
## When should I use this?

Expand Down Expand Up @@ -80,12 +81,9 @@ Yields:
'image',
'img',
'input',
'isindex',
'keygen',
'link',
'menuitem',
'meta',
'nextid',
'param',
'source',
'track',
Expand Down

0 comments on commit 7b5cb87

Please sign in to comment.