forked from rehypejs/rehype-minify
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.js
58 lines (57 loc) · 1.33 KB
/
schema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Note: Don’t include non-strings (such as `boolean`s) here, they are handled
// by `rehype-stringify`.
/**
* @type {Record<string, Array<string>|null>}
*/
export const schema = {
accept: ['input'],
acceptCharset: ['form'],
accessKey: null,
action: ['form'],
cite: ['blockquote', 'del', 'ins', 'q'],
className: null,
cols: ['textarea'],
colSpan: ['td', 'th'],
data: ['object'],
dropzone: null,
formAction: ['button', 'input'],
height: ['canvas', 'embed', 'iframe', 'img', 'input', 'object', 'video'],
high: ['meter'],
href: ['a', 'area', 'base', 'link'],
htmlFor: ['output'],
icon: ['menuitem'],
itemId: null,
low: ['meter'],
manifest: ['html'],
max: ['meter', 'progress'],
maxLength: ['input', 'textarea'],
media: ['source'],
min: ['meter'],
minLength: ['input', 'textarea'],
optimum: ['meter'],
ping: ['a', 'area'],
poster: ['video'],
profile: ['head'],
rows: ['textarea'],
rowSpan: ['td', 'th'],
size: ['input', 'select'],
span: ['col', 'colgroup'],
src: [
'audio',
'embed',
'iframe',
'img',
'input',
'script',
'source',
'track',
'video'
],
start: ['ol'],
step: ['input'],
style: null,
tabIndex: null,
useMap: ['img', 'object'],
value: ['li', 'meter', 'progress'],
width: ['canvas', 'embed', 'iframe', 'img', 'input', 'object', 'video']
}