Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
remove obsolete, non-standard, or deprecated tags
Browse files Browse the repository at this point in the history
  • Loading branch information
chriddyp committed Feb 23, 2018
1 parent a13082d commit 209c114
Show file tree
Hide file tree
Showing 14 changed files with 283 additions and 2,871 deletions.
1,962 changes: 276 additions & 1,686 deletions lib/metadata.json

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions scripts/data/elements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ nav
section
blockquote
dd
dir
div
dl
dt
Expand Down Expand Up @@ -58,7 +57,6 @@ strong
sub
sup
time
tt
u
var
wbr
Expand All @@ -68,9 +66,7 @@ img
map
track
video
applet
embed
noembed
object
param
picture
Expand Down Expand Up @@ -105,45 +101,34 @@ select
textarea
details
dialog
menu
menuitem
summary
content
element
shadow
slot
template
acronym
applet
basefont
bgsound
big
blink
center
command
content
dir
element
font
frame
frameset
image
isindex
keygen
listing
marquee
menu
menuitem
multicol
nextid
nobr
noembed
noframes
plaintext
shadow
spacer
strike
tt
xmp
base
section
Expand Down
5 changes: 4 additions & 1 deletion scripts/extract-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ const dataPath = './data/elements.txt';
*/
function extractElements($) {
const excludeElements = [
'html', 'head', 'body', 'style', 'h1–h6', 'input'
'html', 'head', 'body', 'style', 'h1–h6', 'input',
// obsolete, non-standard, or deprecated tags
'image', 'dir', 'tt', 'applet', 'noembed', 'bgsound', 'menu', 'menuitem',
'noframes'
];
// `<section>` is for some reason missing from the reference tables.
const addElements = [
Expand Down
132 changes: 0 additions & 132 deletions src/components/Applet.react.js

This file was deleted.

5 changes: 3 additions & 2 deletions src/components/Base.react.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import React from 'react';
import PropTypes from 'prop-types';

Expand Down Expand Up @@ -52,7 +53,7 @@ Base.propTypes = {
* See https://reactjs.org/docs/lists-and-keys.html for more info
*/
'key': PropTypes.string,


/**
* The URL of a linked resource.
Expand Down Expand Up @@ -130,7 +131,7 @@ Base.propTypes = {
'fireEvent': PropTypes.func,

'dashEvents': PropTypes.oneOf(['click'])

};

export default Base;
132 changes: 0 additions & 132 deletions src/components/Bgsound.react.js

This file was deleted.

Loading

0 comments on commit 209c114

Please sign in to comment.