|
@@ -1,791 +0,0 @@
|
1
|
|
-" Vim completion for HTML5 data file
|
2
|
|
-" Language: HTML5
|
3
|
|
-" Maintainer: othree <othree@gmail.com>
|
4
|
|
-" Last Change: 2011 Apr 9
|
5
|
|
-
|
6
|
|
-
|
7
|
|
-" Lang Tag: {{{
|
8
|
|
-" Ref: http://www.iana.org/assignments/language-subtag-registry
|
9
|
|
-" Version: 2010/09/07
|
10
|
|
-" Description: only get two-letter language tag
|
11
|
|
-let lang_tag = [
|
12
|
|
- \ 'aa', 'ab', 'ae', 'af', 'ak', 'am', 'an', 'ar', 'as', 'av', 'ay', 'az', 'ba', 'be', 'bg', 'bh', 'bi', 'bm',
|
13
|
|
- \ 'bn', 'bo', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs', 'cu', 'cv', 'cy', 'da', 'de', 'dv', 'dz', 'ee',
|
14
|
|
- \ 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'ff', 'fi', 'fj', 'fo', 'fr', 'fy', 'ga', 'gd', 'gl', 'gn', 'gu',
|
15
|
|
- \ 'gv', 'ha', 'he', 'hi', 'ho', 'hr', 'ht', 'hu', 'hy', 'hz', 'ia', 'id', 'ie', 'ig', 'ii', 'ik', 'in', 'io',
|
16
|
|
- \ 'is', 'it', 'iu', 'iw', 'ja', 'ji', 'jv', 'jw', 'ka', 'kg', 'ki', 'kj', 'kk', 'kl', 'km', 'kn', 'ko', 'kr',
|
17
|
|
- \ 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lb', 'lg', 'li', 'ln', 'lo', 'lt', 'lu', 'lv', 'mg', 'mh', 'mi', 'mk',
|
18
|
|
- \ 'ml', 'mn', 'mo', 'mr', 'ms', 'mt', 'my', 'na', 'nb', 'nd', 'ne', 'ng', 'nl', 'nn', 'no', 'nr', 'nv', 'ny',
|
19
|
|
- \ 'oc', 'oj', 'om', 'or', 'os', 'pa', 'pi', 'pl', 'ps', 'pt', 'qu', 'rm', 'rn', 'ro', 'ru', 'rw', 'sa', 'sc',
|
20
|
|
- \ 'sd', 'se', 'sg', 'sh', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta',
|
21
|
|
- \ 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tr', 'ts', 'tt', 'tw', 'ty', 'ug', 'uk', 'ur', 'uz', 've',
|
22
|
|
- \ 'vi', 'vo', 'wa', 'wo', 'xh', 'yi', 'yo', 'za', 'zh', 'zu', 'zh-CN', 'zh-TW']
|
23
|
|
-" }}}
|
24
|
|
-
|
25
|
|
-" Charset: {{{
|
26
|
|
-" Ref: http://www.iana.org/assignments/character-sets
|
27
|
|
-" Version: 2010/09/07
|
28
|
|
-let charset = [
|
29
|
|
- \ 'ANSI_X3.4-1968', 'ISO_8859-1:1987', 'ISO_8859-2:1987', 'ISO_8859-3:1988', 'ISO_8859-4:1988', 'ISO_8859-5:1988',
|
30
|
|
- \ 'ISO_8859-6:1987', 'ISO_8859-7:1987', 'ISO_8859-8:1988', 'ISO_8859-9:1989', 'ISO-8859-10', 'ISO_6937-2-add', 'JIS_X0201',
|
31
|
|
- \ 'JIS_Encoding', 'Shift_JIS', 'Extended_UNIX_Code_Packed_Format_for_Japanese', 'Extended_UNIX_Code_Fixed_Width_for_Japanese',
|
32
|
|
- \ 'BS_4730', 'SEN_850200_C', 'IT', 'ES', 'DIN_66003', 'NS_4551-1', 'NF_Z_62-010', 'ISO-10646-UTF-1', 'ISO_646.basic:1983',
|
33
|
|
- \ 'INVARIANT', 'ISO_646.irv:1983', 'NATS-SEFI', 'NATS-SEFI-ADD', 'NATS-DANO', 'NATS-DANO-ADD', 'SEN_850200_B', 'KS_C_5601-1987',
|
34
|
|
- \ 'ISO-2022-KR', 'EUC-KR', 'ISO-2022-JP', 'ISO-2022-JP-2', 'JIS_C6220-1969-jp', 'JIS_C6220-1969-ro', 'PT', 'greek7-old',
|
35
|
|
- \ 'latin-greek', 'NF_Z_62-010_(1973)', 'Latin-greek-1', 'ISO_5427', 'JIS_C6226-1978', 'BS_viewdata', 'INIS', 'INIS-8',
|
36
|
|
- \ 'INIS-cyrillic', 'ISO_5427:1981', 'ISO_5428:1980', 'GB_1988-80', 'GB_2312-80', 'NS_4551-2', 'videotex-suppl', 'PT2',
|
37
|
|
- \ 'ES2', 'MSZ_7795.3', 'JIS_C6226-1983', 'greek7', 'ASMO_449', 'iso-ir-90', 'JIS_C6229-1984-a', 'JIS_C6229-1984-b',
|
38
|
|
- \ 'JIS_C6229-1984-b-add', 'JIS_C6229-1984-hand', 'JIS_C6229-1984-hand-add', 'JIS_C6229-1984-kana', 'ISO_2033-1983',
|
39
|
|
- \ 'ANSI_X3.110-1983', 'T.61-7bit', 'T.61-8bit', 'ECMA-cyrillic', 'CSA_Z243.4-1985-1', 'CSA_Z243.4-1985-2', 'CSA_Z243.4-1985-gr',
|
40
|
|
- \ 'ISO_8859-6-E', 'ISO_8859-6-I', 'T.101-G2', 'ISO_8859-8-E', 'ISO_8859-8-I', 'CSN_369103', 'JUS_I.B1.002', 'IEC_P27-1',
|
41
|
|
- \ 'JUS_I.B1.003-serb', 'JUS_I.B1.003-mac', 'greek-ccitt', 'NC_NC00-10:81', 'ISO_6937-2-25', 'GOST_19768-74', 'ISO_8859-supp',
|
42
|
|
- \ 'ISO_10367-box', 'latin-lap', 'JIS_X0212-1990', 'DS_2089', 'us-dk', 'dk-us', 'KSC5636', 'UNICODE-1-1-UTF-7', 'ISO-2022-CN',
|
43
|
|
- \ 'ISO-2022-CN-EXT', 'UTF-8', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', 'GBK', 'GB18030', 'OSD_EBCDIC_DF04_15',
|
44
|
|
- \ 'OSD_EBCDIC_DF03_IRV', 'OSD_EBCDIC_DF04_1', 'ISO-11548-1', 'KZ-1048', 'ISO-10646-UCS-2', 'ISO-10646-UCS-4', 'ISO-10646-UCS-Basic',
|
45
|
|
- \ 'ISO-10646-Unicode-Latin1', 'ISO-10646-J-1', 'ISO-Unicode-IBM-1261', 'ISO-Unicode-IBM-1268', 'ISO-Unicode-IBM-1276',
|
46
|
|
- \ 'ISO-Unicode-IBM-1264', 'ISO-Unicode-IBM-1265', 'UNICODE-1-1', 'SCSU', 'UTF-7', 'UTF-16BE', 'UTF-16LE', 'UTF-16', 'CESU-8',
|
47
|
|
- \ 'UTF-32', 'UTF-32BE', 'UTF-32LE', 'BOCU-1', 'ISO-8859-1-Windows-3.0-Latin-1', 'ISO-8859-1-Windows-3.1-Latin-1',
|
48
|
|
- \ 'ISO-8859-2-Windows-Latin-2', 'ISO-8859-9-Windows-Latin-5', 'hp-roman8', 'Adobe-Standard-Encoding', 'Ventura-US',
|
49
|
|
- \ 'Ventura-International', 'DEC-MCS', 'IBM850', 'PC8-Danish-Norwegian', 'IBM862', 'PC8-Turkish', 'IBM-Symbols', 'IBM-Thai',
|
50
|
|
- \ 'HP-Legal', 'HP-Pi-font', 'HP-Math8', 'Adobe-Symbol-Encoding', 'HP-DeskTop', 'Ventura-Math', 'Microsoft-Publishing',
|
51
|
|
- \ 'Windows-31J', 'GB2312', 'Big5', 'macintosh', 'IBM037', 'IBM038', 'IBM273', 'IBM274', 'IBM275', 'IBM277', 'IBM278',
|
52
|
|
- \ 'IBM280', 'IBM281', 'IBM284', 'IBM285', 'IBM290', 'IBM297', 'IBM420', 'IBM423', 'IBM424', 'IBM437', 'IBM500', 'IBM851',
|
53
|
|
- \ 'IBM852', 'IBM855', 'IBM857', 'IBM860', 'IBM861', 'IBM863', 'IBM864', 'IBM865', 'IBM868', 'IBM869', 'IBM870', 'IBM871',
|
54
|
|
- \ 'IBM880', 'IBM891', 'IBM903', 'IBM904', 'IBM905', 'IBM918', 'IBM1026', 'EBCDIC-AT-DE', 'EBCDIC-AT-DE-A', 'EBCDIC-CA-FR',
|
55
|
|
- \ 'EBCDIC-DK-NO', 'EBCDIC-DK-NO-A', 'EBCDIC-FI-SE', 'EBCDIC-FI-SE-A', 'EBCDIC-FR', 'EBCDIC-IT', 'EBCDIC-PT', 'EBCDIC-ES',
|
56
|
|
- \ 'EBCDIC-ES-A', 'EBCDIC-ES-S', 'EBCDIC-UK', 'EBCDIC-US', 'UNKNOWN-8BIT', 'MNEMONIC', 'MNEM', 'VISCII', 'VIQR', 'KOI8-R',
|
57
|
|
- \ 'HZ-GB-2312', 'IBM866', 'IBM775', 'KOI8-U', 'IBM00858', 'IBM00924', 'IBM01140', 'IBM01141', 'IBM01142', 'IBM01143',
|
58
|
|
- \ 'IBM01144', 'IBM01145', 'IBM01146', 'IBM01147', 'IBM01148', 'IBM01149', 'Big5-HKSCS', 'IBM1047', 'PTCP154', 'Amiga-1251',
|
59
|
|
- \ 'KOI7-switched', 'BRF', 'TSCII', 'windows-1250', 'windows-1251', 'windows-1252', 'windows-1253', 'windows-1254', 'windows-1255',
|
60
|
|
- \ 'windows-1256', 'windows-1257', 'windows-1258', 'TIS-620', ]
|
61
|
|
-" }}}
|
62
|
|
-
|
63
|
|
-" Attributes_and_Settings: {{{
|
64
|
|
-let core_attributes = {'accesskey': [], 'class': [], 'contenteditable': ['true', 'false', ''], 'contextmenu': [], 'dir': ['ltr', 'rtl'], 'draggable': ['true', 'false'], 'hidden': ['hidden', ''], 'id': [], 'lang': lang_tag, 'spellcheck': ['true', 'false', ''], 'style': [], 'tabindex': [], 'title': []}
|
65
|
|
-let xml_attributes = {'xml:lang': lang_tag, 'xml:space': ['preserve'], 'xml:base': [], 'xmlns': ['http://www.w3.org/1999/xhtml', 'http://www.w3.org/1998/Math/MathML', 'http://www.w3.org/2000/svg', 'http://www.w3.org/1999/xlink']}
|
66
|
|
-
|
67
|
|
-let body_attributes = {}
|
68
|
|
-let global_attributes = extend(core_attributes, xml_attributes)
|
69
|
|
-if !exists('g:html5_event_handler_attributes_complete')
|
70
|
|
- let g:html5_event_handler_attributes_complete = 1
|
71
|
|
-endif
|
72
|
|
-
|
73
|
|
-" http://dev.w3.org/html5/spec/Overview.html#attributes-1
|
74
|
|
-let attributes_value = {
|
75
|
|
- \ 'accept': ['MIME', ''],
|
76
|
|
- \ 'accept-charset': ['Charset', ''],
|
77
|
|
- \ 'accesskey': ['Character', ''],
|
78
|
|
- \ 'action': ['URL', ''],
|
79
|
|
- \ 'alt': ['Text', ''],
|
80
|
|
- \ 'async': ['Bool', ''],
|
81
|
|
- \ 'autocomplete': ['on/off', ''],
|
82
|
|
- \ 'autofocus': ['Bool', ''],
|
83
|
|
- \ 'autoplay': ['Bool', ''],
|
84
|
|
- \ 'border': ['1', ''],
|
85
|
|
- \ 'challenge': ['Text', ''],
|
86
|
|
- \ 'charset': ['Charset', ''],
|
87
|
|
- \ 'checked': ['Bool', ''],
|
88
|
|
- \ 'cite': ['URL', ''],
|
89
|
|
- \ 'class': ['*Token', ''],
|
90
|
|
- \ 'cols': ['Int', ''],
|
91
|
|
- \ 'colspan': ['Int', ''],
|
92
|
|
- \ 'content': ['Text', ''],
|
93
|
|
- \ 'contenteditable': ['true/false', ''],
|
94
|
|
- \ 'contextmenu': ['ID', ''],
|
95
|
|
- \ 'controls': ['Bool', ''],
|
96
|
|
- \ 'coords': ['*Int', ''],
|
97
|
|
- \ 'data': ['URL', ''],
|
98
|
|
- \ 'datetime': ['Datetime', ''],
|
99
|
|
- \ 'defer': ['Bool', ''],
|
100
|
|
- \ 'dir': ['ltr/rtl', ''],
|
101
|
|
- \ 'disabled': ['Bool', ''],
|
102
|
|
- \ 'draggable': ['true/false', ''],
|
103
|
|
- \ 'enctype': ['Token', ''],
|
104
|
|
- \ 'for': ['ID', ''],
|
105
|
|
- \ 'form': ['ID', ''],
|
106
|
|
- \ 'formaction': ['URL', ''],
|
107
|
|
- \ 'formenctype': ['Token', ''],
|
108
|
|
- \ 'formmethod': ['HTTP Method', ''],
|
109
|
|
- \ 'formnovalidate': ['Bool', ''],
|
110
|
|
- \ 'formtarget': ['Name', ''],
|
111
|
|
- \ 'headers': ['*ID', ''],
|
112
|
|
- \ 'height': ['Int', ''],
|
113
|
|
- \ 'hidden': ['Bool', ''],
|
114
|
|
- \ 'high': ['Number', ''],
|
115
|
|
- \ 'href': ['URL', ''],
|
116
|
|
- \ 'hreflang': ['Lang Tag', ''],
|
117
|
|
- \ 'http-equiv': ['Text', ''],
|
118
|
|
- \ 'icon': ['URL', ''],
|
119
|
|
- \ 'id': ['Text', ''],
|
120
|
|
- \ 'ismap': ['Bool', ''],
|
121
|
|
- \ 'keytype': ['Text', ''],
|
122
|
|
- \ 'label': ['Text', ''],
|
123
|
|
- \ 'lang': ['Lang Tag', ''],
|
124
|
|
- \ 'list': ['ID', ''],
|
125
|
|
- \ 'loop': ['Bool', ''],
|
126
|
|
- \ 'low': ['Number', ''],
|
127
|
|
- \ 'manifest': ['URL', ''],
|
128
|
|
- \ 'max': ['Number', ''],
|
129
|
|
- \ 'maxlength': ['Int', ''],
|
130
|
|
- \ 'media': ['Text', ''],
|
131
|
|
- \ 'method': ['HTTP Method', ''],
|
132
|
|
- \ 'min': ['Number', ''],
|
133
|
|
- \ 'multiple': ['Bool', ''],
|
134
|
|
- \ 'name': ['Text', ''],
|
135
|
|
- \ 'novalidate': ['Bool', ''],
|
136
|
|
- \ 'open': ['Bool', ''],
|
137
|
|
- \ 'optimum': ['Number', ''],
|
138
|
|
- \ 'pattern': ['Pattern', ''],
|
139
|
|
- \ 'placeholder': ['Text', ''],
|
140
|
|
- \ 'poster': ['URL', ''],
|
141
|
|
- \ 'preload': ['Token', ''],
|
142
|
|
- \ 'pubdate': ['Bool', ''],
|
143
|
|
- \ 'radiogroup': ['Text', ''],
|
144
|
|
- \ 'readonly': ['Bool', ''],
|
145
|
|
- \ 'rel': ['*Token', ''],
|
146
|
|
- \ 'required': ['Bool', ''],
|
147
|
|
- \ 'reversed': ['Bool', ''],
|
148
|
|
- \ 'rows': ['Int', ''],
|
149
|
|
- \ 'rowspan': ['Int', ''],
|
150
|
|
- \ 'sandbox': ['*Token', ''],
|
151
|
|
- \ 'spellcheck': ['true/false', ''],
|
152
|
|
- \ 'scope': ['Token', ''],
|
153
|
|
- \ 'scoped': ['Bool', ''],
|
154
|
|
- \ 'seamless': ['Bool', ''],
|
155
|
|
- \ 'selected': ['Bool', ''],
|
156
|
|
- \ 'shape': ['Token', ''],
|
157
|
|
- \ 'size': ['Int', ''],
|
158
|
|
- \ 'sizes': ['*Token', ''],
|
159
|
|
- \ 'span': ['Int', ''],
|
160
|
|
- \ 'src': ['Int', ''],
|
161
|
|
- \ 'srcdoc': ['Document', ''],
|
162
|
|
- \ 'start': ['Int', ''],
|
163
|
|
- \ 'step': ['Int', ''],
|
164
|
|
- \ 'style': ['Style', ''],
|
165
|
|
- \ 'summary': ['Text', ''],
|
166
|
|
- \ 'tabindex': ['Int', ''],
|
167
|
|
- \ 'target': ['Name', ''],
|
168
|
|
- \ 'title': ['Text', ''],
|
169
|
|
- \ 'type': ['Token', ''],
|
170
|
|
- \ 'usemap': ['Name', ''],
|
171
|
|
- \ 'value': ['Text', ''],
|
172
|
|
- \ 'width': ['Int', ''],
|
173
|
|
- \ 'wrap': ['soft/hard', ''],
|
174
|
|
- \ 'xml:lang': ['Lang tag', ''],
|
175
|
|
- \ 'xml:base': ['*URI', ''],
|
176
|
|
- \ 'xml:space': ['preserve', ''],
|
177
|
|
- \ 'xmlns': ['URI', ''],
|
178
|
|
- \ 'version': ['HTML+RDFa 1.1', ''],
|
179
|
|
- \ 'role': ['*Token', '']
|
180
|
|
-\ }
|
181
|
|
-
|
182
|
|
-if g:html5_event_handler_attributes_complete == 1
|
183
|
|
- let event_handler_attributes = {'onabort': [], 'onblur': [], 'oncanplay': [], 'oncanplaythrough': [], 'onchange': [], 'onclick': [], 'oncontextmenu': [], 'ondblclick': [], 'ondrag': [], 'ondragend': [], 'ondragenter': [], 'ondragleave': [], 'ondragover': [], 'ondragstart': [], 'ondrop': [], 'ondurationchange': [], 'onemptied': [], 'onended': [], 'onerror': [], 'onfocus': [], 'onformchange': [], 'onforminput': [], 'oninput': [], 'oninvalid': [], 'onkeydown': [], 'onkeypress': [], 'onkeyup': [], 'onload': [], 'onloadeddata': [], 'onloadedmetadata': [], 'onloadstart': [], 'onmousedown': [], 'onmousemove': [], 'onmouseout': [], 'onmouseover': [], 'onmouseup': [], 'onmousewheel': [], 'onpause': [], 'onplay': [], 'onplaying': [], 'onprogress': [], 'onratechange': [], 'onreadystatechange': [], 'onscroll': [], 'onseeked': [], 'onseeking': [], 'onselect': [], 'onshow': [], 'onstalled': [], 'onsubmit': [], 'onsuspend': [], 'ontimeupdate': [], 'onvolumechange': [], 'onwaiting': []}
|
184
|
|
- let global_attributes = extend(global_attributes, event_handler_attributes)
|
185
|
|
-
|
186
|
|
- let body_attributes = {'onafterprint': [], 'onbeforeprint': [], 'onbeforeunload': [], 'onblur': [], 'onerror': [], 'onfocus': [], 'onhashchange': [], 'onload': [], 'onmessage': [], 'onoffline': [], 'ononline': [], 'onpopstate': [], 'onredo': [], 'onresize': [], 'onstorage': [], 'onundo': [], 'onunload': []}
|
187
|
|
-
|
188
|
|
- let event_attributes_value = {
|
189
|
|
- \ 'onabort': ['Script', ''],
|
190
|
|
- \ 'onafterprint': ['Script', ''],
|
191
|
|
- \ 'onbeforeprint': ['Script', ''],
|
192
|
|
- \ 'onbeforeunload': ['Script', ''],
|
193
|
|
- \ 'onblur': ['Script', ''],
|
194
|
|
- \ 'oncanplay': ['Script', ''],
|
195
|
|
- \ 'oncanplaythrough': ['Script', ''],
|
196
|
|
- \ 'onchange': ['Script', ''],
|
197
|
|
- \ 'onclick': ['Script', ''],
|
198
|
|
- \ 'oncontextmenu': ['Script', ''],
|
199
|
|
- \ 'ondblclick': ['Script', ''],
|
200
|
|
- \ 'ondrag': ['Script', ''],
|
201
|
|
- \ 'ondragend': ['Script', ''],
|
202
|
|
- \ 'ondragenter': ['Script', ''],
|
203
|
|
- \ 'ondragleave': ['Script', ''],
|
204
|
|
- \ 'ondragover': ['Script', ''],
|
205
|
|
- \ 'ondragstart': ['Script', ''],
|
206
|
|
- \ 'ondrop': ['Script', ''],
|
207
|
|
- \ 'ondurationchange': ['Script', ''],
|
208
|
|
- \ 'onemptied': ['Script', ''],
|
209
|
|
- \ 'onended': ['Script', ''],
|
210
|
|
- \ 'onerror': ['Script', ''],
|
211
|
|
- \ 'onfocus': ['Script', ''],
|
212
|
|
- \ 'onformchange': ['Script', ''],
|
213
|
|
- \ 'onforminput': ['Script', ''],
|
214
|
|
- \ 'onhashchange': ['Script', ''],
|
215
|
|
- \ 'oninput': ['Script', ''],
|
216
|
|
- \ 'oninvalid': ['Script', ''],
|
217
|
|
- \ 'onkeydown': ['Script', ''],
|
218
|
|
- \ 'onkeypress': ['Script', ''],
|
219
|
|
- \ 'onkeyup': ['Script', ''],
|
220
|
|
- \ 'onload': ['Script', ''],
|
221
|
|
- \ 'onloadeddata': ['Script', ''],
|
222
|
|
- \ 'onloadedmetadata': ['Script', ''],
|
223
|
|
- \ 'onloadstart': ['Script', ''],
|
224
|
|
- \ 'onmessage': ['Script', ''],
|
225
|
|
- \ 'onmousedown': ['Script', ''],
|
226
|
|
- \ 'onmousemove': ['Script', ''],
|
227
|
|
- \ 'onmouseout': ['Script', ''],
|
228
|
|
- \ 'onmouseover': ['Script', ''],
|
229
|
|
- \ 'onmouseup': ['Script', ''],
|
230
|
|
- \ 'onmousewheel': ['Script', ''],
|
231
|
|
- \ 'onoffline': ['Script', ''],
|
232
|
|
- \ 'ononline': ['Script', ''],
|
233
|
|
- \ 'onpagehide': ['Script', ''],
|
234
|
|
- \ 'onpageshow': ['Script', ''],
|
235
|
|
- \ 'onpause': ['Script', ''],
|
236
|
|
- \ 'onplay': ['Script', ''],
|
237
|
|
- \ 'onplaying': ['Script', ''],
|
238
|
|
- \ 'onpopstate': ['Script', ''],
|
239
|
|
- \ 'onprogress': ['Script', ''],
|
240
|
|
- \ 'onratechange': ['Script', ''],
|
241
|
|
- \ 'onreadystatechange': ['Script', ''],
|
242
|
|
- \ 'onredo': ['Script', ''],
|
243
|
|
- \ 'onresize': ['Script', ''],
|
244
|
|
- \ 'onscroll': ['Script', ''],
|
245
|
|
- \ 'onseeked': ['Script', ''],
|
246
|
|
- \ 'onseeking': ['Script', ''],
|
247
|
|
- \ 'onselect': ['Script', ''],
|
248
|
|
- \ 'onshow': ['Script', ''],
|
249
|
|
- \ 'onstalled': ['Script', ''],
|
250
|
|
- \ 'onstorage': ['Script', ''],
|
251
|
|
- \ 'onsubmit': ['Script', ''],
|
252
|
|
- \ 'onsuspend': ['Script', ''],
|
253
|
|
- \ 'ontimeupdate': ['Script', ''],
|
254
|
|
- \ 'onundo': ['Script', ''],
|
255
|
|
- \ 'onunload': ['Script', ''],
|
256
|
|
- \ 'onvolumechange': ['Script', ''],
|
257
|
|
- \ 'onwaiting': ['Script', '']
|
258
|
|
- \ }
|
259
|
|
-
|
260
|
|
- let attributes_value = extend(attributes_value, event_attributes_value)
|
261
|
|
-endif
|
262
|
|
-if !exists('g:html5_rdfa_attributes_complete')
|
263
|
|
- let g:html5_rdfa_attributes_complete = 1
|
264
|
|
-endif
|
265
|
|
-if g:html5_rdfa_attributes_complete == 1
|
266
|
|
- " http://www.w3.org/TR/rdfa-syntax/#s_metaAttributes
|
267
|
|
- " http://www.w3.org/TR/rdfa-core/#s_syntax
|
268
|
|
- let relrev = ['chapter', 'contents', 'copyright', 'first', 'glossary', 'help', 'icon', 'index', 'last', 'license', 'meta', 'next', 'p3pv1', 'prev', 'role', 'section', 'stylesheet', 'subsection', 'start', 'top', 'up']
|
269
|
|
- let rdfa_attributes = {'about': [], 'content': [], 'datatype': [], 'prefix': [], 'profile': [], 'property': [], 'resource': [], 'rel': relrev, 'rev': relrev, 'typeof': [], 'vocab': []}
|
270
|
|
- let global_attributes = extend(global_attributes, rdfa_attributes)
|
271
|
|
-
|
272
|
|
- let rdfa_attributes_value = {
|
273
|
|
- \ 'about': ['SafeCURIEorCURIEorURI', ''],
|
274
|
|
- \ 'content': ['CDATA String', ''],
|
275
|
|
- \ 'datatype': ['CURIE', ''],
|
276
|
|
- \ 'prefix': ['*Prefix', ''],
|
277
|
|
- \ 'profile': ['String', ''],
|
278
|
|
- \ 'property': ['*TERMorCURIEorAbsURIs', ''],
|
279
|
|
- \ 'resource': ['URIorSafeCURIE', ''],
|
280
|
|
- \ 'rel': ['*TERMorCURIEorAbsURIs', ''],
|
281
|
|
- \ 'rev': ['*TERMorCURIEorAbsURIs', ''],
|
282
|
|
- \ 'typeof': ['*TERMorCURIEorAbsURIs', ''],
|
283
|
|
- \ 'vocab': ['URI', '']
|
284
|
|
- \ }
|
285
|
|
- let attributes_value = extend(attributes_value, rdfa_attributes_value)
|
286
|
|
-endif
|
287
|
|
-if !exists('g:html5_microdata_attributes_complete')
|
288
|
|
- let g:html5_microdata_attributes_complete = 1
|
289
|
|
-endif
|
290
|
|
-if g:html5_microdata_attributes_complete == 1
|
291
|
|
- let microdata_attributes = {'itemid': [], 'itemscope': ['itemscope', ''], 'itemtype': [], 'itemprop': [], 'itemref': []}
|
292
|
|
- let global_attributes = extend(global_attributes, microdata_attributes)
|
293
|
|
-
|
294
|
|
- let microdata_attributes_value = {
|
295
|
|
- \ 'itemid': ['URI', ''],
|
296
|
|
- \ 'itemscope': ['Bool', ''],
|
297
|
|
- \ 'itemtype': ['URI', ''],
|
298
|
|
- \ 'itemprop': ['String', ''],
|
299
|
|
- \ 'itemref': ['*ID', '']
|
300
|
|
- \ }
|
301
|
|
- let attributes_value = extend(attributes_value, microdata_attributes_value)
|
302
|
|
-endif
|
303
|
|
-" }}}
|
304
|
|
-
|
305
|
|
-" WAI_ARIA: {{{
|
306
|
|
-" Ref: http://www.w3.org/TR/wai-aria/
|
307
|
|
-" Version: Draft 15 December 2009
|
308
|
|
-if !exists('g:html5_aria_attributes_complete')
|
309
|
|
- let g:html5_aria_attributes_complete = 1
|
310
|
|
-endif
|
311
|
|
-if g:html5_aria_attributes_complete == 1
|
312
|
|
- " Ref: http://www.w3.org/TR/wai-aria/roles
|
313
|
|
- " Version: Draft 15 December 2009
|
314
|
|
- let widget_role = ['alert', 'alertdialog', 'button', 'checkbox', 'combobox', 'dialog', 'gridcell', 'link', 'log', 'marquee', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'slider', 'spinbutton', 'status', 'tab', 'tabpanel', 'textbox', 'timer', 'tooltip', 'treeitem', 'combobox', 'grid', 'listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid']
|
315
|
|
- let document_structure = ['article', 'columnheader', 'definition', 'directory', 'document', 'group', 'heading', 'img', 'list', 'listitem', 'math', 'note', 'presentation', 'region', 'row', 'rowheader', 'separator']
|
316
|
|
- let landmark_role = ['application', 'banner', 'complementary', 'contentinfo', 'form', 'main', 'navigation', 'search']
|
317
|
|
- let role = extend(widget_role, document_structure)
|
318
|
|
- let role = extend(role, landmark_role)
|
319
|
|
- let global_attributes = extend(global_attributes, {'role': role})
|
320
|
|
-endif
|
321
|
|
-" }}}
|
322
|
|
-
|
323
|
|
-" Ref: http://dev.w3.org/html5/markup/
|
324
|
|
-" Version: Draft 05 April 2011
|
325
|
|
-let phrasing_elements = ['a', 'em', 'strong', 'small', 'mark', 'abbr', 'dfn', 'i', 'b', 'u', 'code', 'var', 'samp', 'kbd', 'sup', 'sub', 'q', 'cite', 'span', 'bdo', 'bdi', 'br', 'wbr', 'ins', 'del', 'img', 'embed', 'object', 'iframe', 'map', 'area', 'script', 'noscript', 'ruby', 'video', 'audio', 'input', 'textarea', 'select', 'button', 'label', 'output', 'datalist', 'keygen', 'progress', 'command', 'canvas', 'time', 'meter']
|
326
|
|
-
|
327
|
|
-let metadata_elements = ['link', 'style', 'meta', 'script', 'noscript', 'command']
|
328
|
|
-
|
329
|
|
-let flow_elements = phrasing_elements + ['p', 'hr', 'pre', 'ul', 'ol', 'dl', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hgroup', 'address', 'blockquote', 'ins', 'del', 'object', 'map', 'noscript', 'section', 'nav', 'article', 'aside', 'header', 'footer', 'video', 'audio', 'figure', 'table', 'form', 'fieldset', 'menu', 'canvas', 'details']
|
330
|
|
-
|
331
|
|
-" http://dev.w3.org/html5/spec/Overview.html#linkTypes
|
332
|
|
-let linktypes = ['alternate', 'author', 'bookmark', 'external', 'help', 'icon', 'license', 'next', 'nofollow', 'noreferrer', 'pingback', 'prefetch', 'prev', 'search', 'stylesheet', 'sidebar', 'tag']
|
333
|
|
-" http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
|
334
|
|
-let linkreltypes = linktypes + ['canonical']
|
335
|
|
-
|
336
|
|
-" a and button are special elements for interactive, some element can't be its descendent
|
337
|
|
-let abutton_dec = 'details\\|embed\\|iframe\\|keygen\\|label\\|menu\\|select\\|textarea'
|
338
|
|
-
|
339
|
|
-
|
340
|
|
-
|
341
|
|
-let g:xmldata_html5 = {
|
342
|
|
-\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'],
|
343
|
|
-\ 'vimxmlroot': ['html'],
|
344
|
|
-\ 'a': [
|
345
|
|
- \ filter(copy(flow_elements), "!(v:val =~ '". abutton_dec ."')"),
|
346
|
|
- \ extend(copy(global_attributes), {'name': [], 'href': [], 'target': [], 'rel': linktypes, 'hreflang': lang_tag, 'media': [], 'type': []})
|
347
|
|
-\ ],
|
348
|
|
-\ 'abbr': [
|
349
|
|
- \ phrasing_elements,
|
350
|
|
- \ global_attributes
|
351
|
|
-\ ],
|
352
|
|
-\ 'address': [
|
353
|
|
- \ filter(copy(flow_elements), "!(v:val =~ 'address\\|nav\\|article\\|header\\|footer\\|section\\|aside\\|h1\\|h2\\|h3\\|h4\\|h5\\|h6')"),
|
354
|
|
- \ global_attributes
|
355
|
|
-\ ],
|
356
|
|
-\ 'area': [
|
357
|
|
- \ [],
|
358
|
|
- \ extend(copy(global_attributes), {'alt': [], 'href': [], 'target': [], 'rel': linktypes, 'media': [], 'hreflang': lang_tag, 'type': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'coords': []})
|
359
|
|
-\ ],
|
360
|
|
-\ 'article': [
|
361
|
|
- \ flow_elements + ['style'],
|
362
|
|
- \ global_attributes
|
363
|
|
-\ ],
|
364
|
|
-\ 'aside': [
|
365
|
|
- \ flow_elements + ['style'],
|
366
|
|
- \ global_attributes
|
367
|
|
-\ ],
|
368
|
|
-\ 'audio': [
|
369
|
|
- \ flow_elements + ['source', 'track'],
|
370
|
|
- \ extend(copy(global_attributes), {'autoplay': ['autoplay', ''], 'preload': ['none', 'metadata', 'auto', ''], 'controls': ['controls', ''], 'loop': ['loop', ''], 'src': []})
|
371
|
|
-\ ],
|
372
|
|
-\ 'b': [
|
373
|
|
- \ phrasing_elements,
|
374
|
|
- \ global_attributes
|
375
|
|
-\ ],
|
376
|
|
-\ 'base': [
|
377
|
|
- \ [],
|
378
|
|
- \ extend(copy(global_attributes), {'href': [], 'target': []})
|
379
|
|
-\ ],
|
380
|
|
-\ 'bdo': [
|
381
|
|
- \ phrasing_elements,
|
382
|
|
- \ global_attributes
|
383
|
|
-\ ],
|
384
|
|
-\ 'bdi': [
|
385
|
|
- \ phrasing_elements,
|
386
|
|
- \ global_attributes
|
387
|
|
-\ ],
|
388
|
|
-\ 'blockquote': [
|
389
|
|
- \ flow_elements,
|
390
|
|
- \ extend(copy(global_attributes), {'cite': []})
|
391
|
|
-\ ],
|
392
|
|
-\ 'body': [
|
393
|
|
- \ flow_elements,
|
394
|
|
- \ extend(copy(global_attributes), body_attributes)
|
395
|
|
-\ ],
|
396
|
|
-\ 'br': [
|
397
|
|
- \ [],
|
398
|
|
- \ global_attributes
|
399
|
|
-\ ],
|
400
|
|
-\ 'button': [
|
401
|
|
- \ filter(copy(phrasing_elements), "!(v:val =~ '". abutton_dec ."')"),
|
402
|
|
- \ extend(copy(global_attributes), {'type': ['submit', 'reset', 'button'], 'name': [], 'disabled': ['disabled', ''], 'form': [], 'value': [], 'formaction': [], 'autofocus': ['autofocus', ''], 'formenctype': ['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'], 'formmethod': ['get', 'post', 'put', 'delete'], 'formtarget': [], 'formnovalidate': ['formnovalidate', '']})
|
403
|
|
-\ ],
|
404
|
|
-\ 'canvas': [
|
405
|
|
- \ flow_elements,
|
406
|
|
- \ extend(copy(global_attributes), {'height': [], 'width': []})
|
407
|
|
-\ ],
|
408
|
|
-\ 'caption': [
|
409
|
|
- \ filter(copy(flow_elements), "!(v:val =~ 'table')"),
|
410
|
|
- \ global_attributes
|
411
|
|
-\ ],
|
412
|
|
-\ 'cite': [
|
413
|
|
- \ phrasing_elements,
|
414
|
|
- \ global_attributes
|
415
|
|
-\ ],
|
416
|
|
-\ 'code': [
|
417
|
|
- \ phrasing_elements,
|
418
|
|
- \ global_attributes
|
419
|
|
-\ ],
|
420
|
|
-\ 'col': [
|
421
|
|
- \ [],
|
422
|
|
- \ extend(copy(global_attributes), {'span': []})
|
423
|
|
-\ ],
|
424
|
|
-\ 'colgroup': [
|
425
|
|
- \ [],
|
426
|
|
- \ extend(copy(global_attributes), {'span': []})
|
427
|
|
-\ ],
|
428
|
|
-\ 'command': [
|
429
|
|
- \ ['col'],
|
430
|
|
- \ extend(copy(global_attributes), {'type': ['command', 'radio', 'checkbox'], 'radiogroup': [], 'checked': ['checked', ''], 'label': [], 'icon': [], 'disabled': ['disabled', '']})
|
431
|
|
-\ ],
|
432
|
|
-\ 'datalist': [
|
433
|
|
- \ phrasing_elements + ['option'],
|
434
|
|
- \ global_attributes
|
435
|
|
-\ ],
|
436
|
|
-\ 'dd': [
|
437
|
|
- \ flow_elements,
|
438
|
|
- \ global_attributes
|
439
|
|
-\ ],
|
440
|
|
-\ 'del': [
|
441
|
|
- \ flow_elements,
|
442
|
|
- \ extend(copy(global_attributes), {'cite': [], 'datetime': []})
|
443
|
|
-\ ],
|
444
|
|
-\ 'details': [
|
445
|
|
- \ flow_elements + ['summary'],
|
446
|
|
- \ extend(copy(global_attributes), {'open': ['open', '']})
|
447
|
|
-\ ],
|
448
|
|
-\ 'dfn': [
|
449
|
|
- \ filter(copy(phrasing_elements), "!(v:val =~ 'dfn')"),
|
450
|
|
- \ global_attributes
|
451
|
|
-\ ],
|
452
|
|
-\ 'div': [
|
453
|
|
- \ flow_elements + ['style'],
|
454
|
|
- \ global_attributes
|
455
|
|
-\ ],
|
456
|
|
-\ 'dl': [
|
457
|
|
- \ ['dt', 'dd'],
|
458
|
|
- \ global_attributes
|
459
|
|
-\ ],
|
460
|
|
-\ 'dt': [
|
461
|
|
- \ phrasing_elements,
|
462
|
|
- \ global_attributes
|
463
|
|
-\ ],
|
464
|
|
-\ 'em': [
|
465
|
|
- \ phrasing_elements,
|
466
|
|
- \ global_attributes
|
467
|
|
-\ ],
|
468
|
|
-\ 'embed': [
|
469
|
|
- \ [],
|
470
|
|
- \ extend(copy(global_attributes), {'src': [], 'type': [], 'height': [], 'width': []})
|
471
|
|
-\ ],
|
472
|
|
-\ 'fieldset': [
|
473
|
|
- \ flow_elements + ['legend'],
|
474
|
|
- \ extend(copy(global_attributes), {'name': [], 'disabled': ['disabled', ''], 'form': []})
|
475
|
|
-\ ],
|
476
|
|
-\ 'figcaption': [
|
477
|
|
- \ flow_elements,
|
478
|
|
- \ global_attributes
|
479
|
|
-\ ],
|
480
|
|
-\ 'figure': [
|
481
|
|
- \ flow_elements + ['figcaption'],
|
482
|
|
- \ global_attributes
|
483
|
|
-\ ],
|
484
|
|
-\ 'footer': [
|
485
|
|
- \ filter(copy(flow_elements), "!(v:val =~ 'address\\|header\\|footer')"),
|
486
|
|
- \ global_attributes
|
487
|
|
-\ ],
|
488
|
|
-\ 'form': [
|
489
|
|
- \ flow_elements,
|
490
|
|
- \ extend(copy(global_attributes), {'name': [], 'action': [], 'enctype': ['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'], 'method': ['get', 'post', 'put', 'delete'], 'target': [], 'novalidate': ['novalidate', ''], 'accept-charset': charset, 'autocomplete': ['on', 'off']})
|
491
|
|
-\ ],
|
492
|
|
-\ 'h1': [
|
493
|
|
- \ phrasing_elements,
|
494
|
|
- \ global_attributes
|
495
|
|
-\ ],
|
496
|
|
-\ 'h2': [
|
497
|
|
- \ phrasing_elements,
|
498
|
|
- \ global_attributes
|
499
|
|
-\ ],
|
500
|
|
-\ 'h3': [
|
501
|
|
- \ phrasing_elements,
|
502
|
|
- \ global_attributes
|
503
|
|
-\ ],
|
504
|
|
-\ 'h4': [
|
505
|
|
- \ phrasing_elements,
|
506
|
|
- \ global_attributes
|
507
|
|
-\ ],
|
508
|
|
-\ 'h5': [
|
509
|
|
- \ phrasing_elements,
|
510
|
|
- \ global_attributes
|
511
|
|
-\ ],
|
512
|
|
-\ 'h6': [
|
513
|
|
- \ phrasing_elements,
|
514
|
|
- \ global_attributes
|
515
|
|
-\ ],
|
516
|
|
-\ 'head': [
|
517
|
|
- \ metadata_elements + ['title', 'base'],
|
518
|
|
- \ global_attributes
|
519
|
|
-\ ],
|
520
|
|
-\ 'header': [
|
521
|
|
- \ filter(copy(flow_elements), "!(v:val =~ 'address\\|header\\|footer')"),
|
522
|
|
- \ global_attributes
|
523
|
|
-\ ],
|
524
|
|
-\ 'hgroup': [
|
525
|
|
- \ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
|
526
|
|
- \ global_attributes
|
527
|
|
-\ ],
|
528
|
|
-\ 'hr': [
|
529
|
|
- \ [],
|
530
|
|
- \ global_attributes
|
531
|
|
-\ ],
|
532
|
|
-\ 'html': [
|
533
|
|
- \ ['head', 'body'],
|
534
|
|
- \ extend(copy(global_attributes), {'manifest': [], 'version': ['HTML+RDFa 1.1']})
|
535
|
|
-\ ],
|
536
|
|
-\ 'i': [
|
537
|
|
- \ phrasing_elements,
|
538
|
|
- \ global_attributes
|
539
|
|
-\ ],
|
540
|
|
-\ 'iframe': [
|
541
|
|
- \ [],
|
542
|
|
- \ extend(copy(global_attributes), {'src': [], 'name': [], 'width': [], 'height': [], 'sandbox': ['allow-same-origin', 'allow-forms', 'allow-scripts'], 'seamless': ['seamless', '']})
|
543
|
|
-\ ],
|
544
|
|
-\ 'img': [
|
545
|
|
- \ [],
|
546
|
|
- \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'usemap': [], 'ismap': ['ismap', '']})
|
547
|
|
-\ ],
|
548
|
|
-\ 'input': [
|
549
|
|
- \ [],
|
550
|
|
- \ extend(copy(global_attributes), {'type': ['text', 'password', 'checkbox', 'radio', 'button', 'submit', 'reset', 'file', 'hidden', 'image', 'datetime', 'datetime-local', 'date', 'month', 'time', 'week', 'number', 'range', 'email', 'url', 'search', 'tel', 'coloe'], 'name': [], 'disabled': ['disabled', ''], 'form': [], 'maxlength': [], 'readonly': ['readonly', ''], 'size': [], 'value': [], 'autocomplete': ['on', 'off'], 'autofocus': ['autofocus', ''], 'list': [], 'pattern': [], 'required': ['required', ''], 'placeholder': [], 'checked': ['checked'], 'accept': [], 'multiple': ['multiple', ''], 'alt': [], 'src': [], 'height': [], 'width': [], 'min': [], 'max': [], 'step': [], 'formenctype': ['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'], 'formmethod': ['get', 'post', 'put', 'delete'], 'formtarget': [], 'formnovalidate': ['formnovalidate', '']})
|
551
|
|
-\ ],
|
552
|
|
-\ 'ins': [
|
553
|
|
- \ flow_elements,
|
554
|
|
- \ extend(copy(global_attributes), {'cite': [], 'datetime': []})
|
555
|
|
-\ ],
|
556
|
|
-\ 'kbd': [
|
557
|
|
- \ phrasing_elements,
|
558
|
|
- \ global_attributes
|
559
|
|
-\ ],
|
560
|
|
-\ 'keygen': [
|
561
|
|
- \ [],
|
562
|
|
- \ extend(copy(global_attributes), {'challenge': [], 'keytype': ['rsa'], 'autofocus': ['autofocus', ''], 'name': [], 'disabled': ['disabled', ''], 'form': []})
|
563
|
|
-\ ],
|
564
|
|
-\ 'label': [
|
565
|
|
- \ filter(copy(phrasing_elements), "!(v:val =~ 'label')"),
|
566
|
|
- \ extend(copy(global_attributes), {'for': [], 'form': []})
|
567
|
|
-\ ],
|
568
|
|
-\ 'legend': [
|
569
|
|
- \ phrasing_elements,
|
570
|
|
- \ global_attributes
|
571
|
|
-\ ],
|
572
|
|
-\ 'li': [
|
573
|
|
- \ flow_elements,
|
574
|
|
- \ extend(copy(global_attributes), {'value': []})
|
575
|
|
-\ ],
|
576
|
|
-\ 'link': [
|
577
|
|
- \ [],
|
578
|
|
- \ extend(copy(global_attributes), {'href': [], 'rel': linkreltypes, 'hreflang': lang_tag, 'media': [], 'type': [], 'sizes': ['any']})
|
579
|
|
-\ ],
|
580
|
|
-\ 'map': [
|
581
|
|
- \ flow_elements,
|
582
|
|
- \ extend(copy(global_attributes), {'name': []})
|
583
|
|
-\ ],
|
584
|
|
-\ 'mark': [
|
585
|
|
- \ phrasing_elements,
|
586
|
|
- \ global_attributes
|
587
|
|
-\ ],
|
588
|
|
-\ 'menu': [
|
589
|
|
- \ flow_elements + ['li'],
|
590
|
|
- \ extend(copy(global_attributes), {'type': ['toolbar', 'context'], 'label': []})
|
591
|
|
-\ ],
|
592
|
|
-\ 'meta': [
|
593
|
|
- \ [],
|
594
|
|
- \ extend(copy(global_attributes), {'name': [], 'http-equiv': ['refresh', 'default-style', 'content-type'], 'content': [], 'charset': charset})
|
595
|
|
-\ ],
|
596
|
|
-\ 'meter': [
|
597
|
|
- \ phrasing_elements,
|
598
|
|
- \ extend(copy(global_attributes), {'value': [], 'min': [], 'low': [], 'high': [], 'max': [], 'optimum': []})
|
599
|
|
-\ ],
|
600
|
|
-\ 'nav': [
|
601
|
|
- \ flow_elements,
|
602
|
|
- \ global_attributes
|
603
|
|
-\ ],
|
604
|
|
-\ 'noscript': [
|
605
|
|
- \ flow_elements + ['link', 'meta', 'style'],
|
606
|
|
- \ global_attributes
|
607
|
|
-\ ],
|
608
|
|
-\ 'object': [
|
609
|
|
- \ flow_elements + ['param'],
|
610
|
|
- \ extend(copy(global_attributes), {'data': [], 'type': [], 'height': [], 'width': [], 'usemap': [], 'name': [], 'form': []})
|
611
|
|
-\ ],
|
612
|
|
-\ 'ol': [
|
613
|
|
- \ ['li'],
|
614
|
|
- \ extend(copy(global_attributes), {'start': [], 'reversed': ['reversed', '']})
|
615
|
|
-\ ],
|
616
|
|
-\ 'optgroup': [
|
617
|
|
- \ ['option'],
|
618
|
|
- \ extend(copy(global_attributes), {'label': [], 'disabled': ['disabled', '']})
|
619
|
|
-\ ],
|
620
|
|
-\ 'option': [
|
621
|
|
- \ [''],
|
622
|
|
- \ extend(copy(global_attributes), {'disabled': ['disabled', ''], 'selected': ['selected', ''], 'label': [], 'value': []})
|
623
|
|
-\ ],
|
624
|
|
-\ 'output': [
|
625
|
|
- \ phrasing_elements,
|
626
|
|
- \ extend(copy(global_attributes), {'name': [], 'form': [], 'for': []})
|
627
|
|
-\ ],
|
628
|
|
-\ 'p': [
|
629
|
|
- \ phrasing_elements,
|
630
|
|
- \ global_attributes
|
631
|
|
-\ ],
|
632
|
|
-\ 'param': [
|
633
|
|
- \ [],
|
634
|
|
- \ extend(copy(global_attributes), {'name': [], 'value': []})
|
635
|
|
-\ ],
|
636
|
|
-\ 'pre': [
|
637
|
|
- \ phrasing_elements,
|
638
|
|
- \ global_attributes
|
639
|
|
-\ ],
|
640
|
|
-\ 'progress': [
|
641
|
|
- \ filter(copy(phrasing_elements), "!(v:val =~ 'progress')"),
|
642
|
|
- \ extend(copy(global_attributes), {'value': [], 'max': []})
|
643
|
|
-\ ],
|
644
|
|
-\ 'q': [
|
645
|
|
- \ phrasing_elements,
|
646
|
|
- \ extend(copy(global_attributes), {'cite': []})
|
647
|
|
-\ ],
|
648
|
|
-\ 'rp': [
|
649
|
|
- \ phrasing_elements,
|
650
|
|
- \ global_attributes
|
651
|
|
-\ ],
|
652
|
|
-\ 'rt': [
|
653
|
|
- \ phrasing_elements,
|
654
|
|
- \ global_attributes
|
655
|
|
-\ ],
|
656
|
|
-\ 'ruby': [
|
657
|
|
- \ phrasing_elements + ['rp', 'rt'],
|
658
|
|
- \ global_attributes
|
659
|
|
-\ ],
|
660
|
|
-\ 'samp': [
|
661
|
|
- \ phrasing_elements,
|
662
|
|
- \ global_attributes
|
663
|
|
-\ ],
|
664
|
|
-\ 'script': [
|
665
|
|
- \ [],
|
666
|
|
- \ extend(copy(global_attributes), {'src': [], 'defer': ['defer', ''], 'async': ['async', ''], 'type': [], 'charset': charset})
|
667
|
|
-\ ],
|
668
|
|
-\ 'section': [
|
669
|
|
- \ flow_elements + ['style'],
|
670
|
|
- \ global_attributes
|
671
|
|
-\ ],
|
672
|
|
-\ 'select': [
|
673
|
|
- \ ['optgroup', 'option'],
|
674
|
|
- \ extend(copy(global_attributes), {'name': [], 'disabled': ['disabled', ''], 'form': [], 'size': [], 'multiple': ['multiple', '']})
|
675
|
|
-\ ],
|
676
|
|
-\ 'small': [
|
677
|
|
- \ phrasing_elements,
|
678
|
|
- \ global_attributes
|
679
|
|
-\ ],
|
680
|
|
-\ 'source': [
|
681
|
|
- \ [],
|
682
|
|
- \ extend(copy(global_attributes), {'src': [], 'type': [], 'media': []})
|
683
|
|
-\ ],
|
684
|
|
-\ 'span': [
|
685
|
|
- \ phrasing_elements,
|
686
|
|
- \ global_attributes
|
687
|
|
-\ ],
|
688
|
|
-\ 'strong': [
|
689
|
|
- \ phrasing_elements,
|
690
|
|
- \ global_attributes
|
691
|
|
-\ ],
|
692
|
|
-\ 'style': [
|
693
|
|
- \ [],
|
694
|
|
- \ extend(copy(global_attributes), {'type': [], 'media': [], 'scoped': ['scoped', '']})
|
695
|
|
-\ ],
|
696
|
|
-\ 'sub': [
|
697
|
|
- \ phrasing_elements,
|
698
|
|
- \ global_attributes
|
699
|
|
-\ ],
|
700
|
|
-\ 'summary': [
|
701
|
|
- \ phrasing_elements,
|
702
|
|
- \ global_attributes
|
703
|
|
-\ ],
|
704
|
|
-\ 'sup': [
|
705
|
|
- \ phrasing_elements,
|
706
|
|
- \ global_attributes
|
707
|
|
-\ ],
|
708
|
|
-\ 'table': [
|
709
|
|
- \ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody', 'tr'],
|
710
|
|
- \ extend(copy(global_attributes), {'border': []})
|
711
|
|
-\ ],
|
712
|
|
-\ 'tbody': [
|
713
|
|
- \ ['tr'],
|
714
|
|
- \ global_attributes
|
715
|
|
-\ ],
|
716
|
|
-\ 'td': [
|
717
|
|
- \ flow_elements,
|
718
|
|
- \ extend(copy(global_attributes), {'colspan': [], 'rowspan': [], 'headers': []})
|
719
|
|
-\ ],
|
720
|
|
-\ 'textarea': [
|
721
|
|
- \ [''],
|
722
|
|
- \ extend(copy(global_attributes), {'name': [], 'disabled': ['disabled', ''], 'form': [], 'readonly': ['readonly', ''], 'maxlength': [], 'autofocus': ['autofocus', ''], 'required': ['required', ''], 'placeholder': [], 'rows': [], 'wrap': ['hard', 'soft'], 'cols': []})
|
723
|
|
-\ ],
|
724
|
|
-\ 'tfoot': [
|
725
|
|
- \ ['tr'],
|
726
|
|
- \ global_attributes
|
727
|
|
-\ ],
|
728
|
|
-\ 'th': [
|
729
|
|
- \ phrasing_elements,
|
730
|
|
- \ extend(copy(global_attributes), {'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'colspan': [], 'rowspan': [], 'headers': []})
|
731
|
|
-\ ],
|
732
|
|
-\ 'thead': [
|
733
|
|
- \ ['tr'],
|
734
|
|
- \ global_attributes
|
735
|
|
-\ ],
|
736
|
|
-\ 'time': [
|
737
|
|
- \ phrasing_elements,
|
738
|
|
- \ extend(copy(global_attributes), {'datetime': [], 'pubdate': ['pubdate', '']})
|
739
|
|
-\ ],
|
740
|
|
-\ 'title': [
|
741
|
|
- \ [''],
|
742
|
|
- \ global_attributes
|
743
|
|
-\ ],
|
744
|
|
-\ 'tr': [
|
745
|
|
- \ ['th', 'td'],
|
746
|
|
- \ global_attributes
|
747
|
|
-\ ],
|
748
|
|
-\ 'track': [
|
749
|
|
- \ [],
|
750
|
|
- \ extend(copy(global_attributes), {'kind': ['subtitles', 'captions', 'descriptions', 'chapters', 'metadata'], 'src': [], 'charset': charset, 'srclang': lang_tag, 'label': []})
|
751
|
|
-\ ],
|
752
|
|
-\ 'u': [
|
753
|
|
- \ phrasing_elements,
|
754
|
|
- \ global_attributes
|
755
|
|
-\ ],
|
756
|
|
-\ 'ul': [
|
757
|
|
- \ ['li'],
|
758
|
|
- \ global_attributes
|
759
|
|
-\ ],
|
760
|
|
-\ 'var': [
|
761
|
|
- \ phrasing_elements,
|
762
|
|
- \ global_attributes
|
763
|
|
-\ ],
|
764
|
|
-\ 'video': [
|
765
|
|
- \ flow_elements + ['source', 'track'],
|
766
|
|
- \ extend(copy(global_attributes), {'autoplay': ['autoplay', ''], 'preload': ['none', 'metadata', 'auto', ''], 'controls': ['controls', ''], 'loop': ['loop', ''], 'poster': [], 'height': [], 'width': [], 'src': []})
|
767
|
|
-\ ],
|
768
|
|
-\ 'wbr': [
|
769
|
|
- \ [],
|
770
|
|
- \ global_attributes
|
771
|
|
-\ ],
|
772
|
|
-\ 'vimxmlattrinfo' : attributes_value,
|
773
|
|
-\ 'vimxmltaginfo': {
|
774
|
|
- \ 'area': ['/>', ''],
|
775
|
|
- \ 'base': ['/>', ''],
|
776
|
|
- \ 'br': ['/>', ''],
|
777
|
|
- \ 'col': ['/>', ''],
|
778
|
|
- \ 'command': ['/>', ''],
|
779
|
|
- \ 'embed': ['/>', ''],
|
780
|
|
- \ 'hr': ['/>', ''],
|
781
|
|
- \ 'img': ['/>', ''],
|
782
|
|
- \ 'input': ['/>', ''],
|
783
|
|
- \ 'keygen': ['/>', ''],
|
784
|
|
- \ 'link': ['/>', ''],
|
785
|
|
- \ 'meta': ['/>', ''],
|
786
|
|
- \ 'param': ['/>', ''],
|
787
|
|
- \ 'source': ['/>', ''],
|
788
|
|
- \ 'track': ['/>', ''],
|
789
|
|
- \ 'wbr': ['/>', ''],
|
790
|
|
-\ },
|
791
|
|
-\ }
|