Skip to content

Commit 7b5cb87

Browse files
authored
Remove elements that are no longer void
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.
1 parent 983ea57 commit 7b5cb87

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ export const htmlVoidElements = [
1717
'image',
1818
'img',
1919
'input',
20-
'isindex',
2120
'keygen',
2221
'link',
23-
'menuitem',
2422
'meta',
25-
'nextid',
2623
'param',
2724
'source',
2825
'track',

readme.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ List of HTML void tag names.
2626

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

29-
> 👉 **Note**: includes ancient (such as `nextid` and `basefont`) tag names too.
29+
> 👉 **Note**: includes ancient (such as `basefont` and `bgsound`) tag names
30+
> too.
3031
3132
## When should I use this?
3233

@@ -80,12 +81,9 @@ Yields:
8081
'image',
8182
'img',
8283
'input',
83-
'isindex',
8484
'keygen',
8585
'link',
86-
'menuitem',
8786
'meta',
88-
'nextid',
8987
'param',
9088
'source',
9189
'track',

0 commit comments

Comments
 (0)