diff options
Diffstat (limited to 'autoload/xml')
| -rw-r--r-- | autoload/xml/html5.vim | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index 73b24a4c..982fe29a 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -371,6 +371,7 @@ let linkreltypes = linkreltypes + ['pgpkey']  " a and button are special elements for interactive, some element can't be its descendent  let abutton_dec = 'details\\|embed\\|iframe\\|keygen\\|label\\|menu\\|select\\|textarea' +let crossorigin = ['anonymous', 'use-credentials']  let g:xmldata_html5 = { @@ -582,7 +583,7 @@ let g:xmldata_html5 = {  \ ],  \ 'img': [      \ [], -    \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url']}) +    \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': ['anonymous', 'use-credentials']})  \ ],  \ 'input': [      \ [], @@ -614,7 +615,7 @@ let g:xmldata_html5 = {  \ ],  \ 'link': [      \ [], -    \ extend(copy(global_attributes), {'href': [], 'rel': linkreltypes, 'hreflang': lang_tag, 'media': [], 'type': [], 'sizes': ['any'], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url']}) +    \ extend(copy(global_attributes), {'href': [], 'rel': linkreltypes, 'hreflang': lang_tag, 'media': [], 'type': [], 'sizes': ['any'], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': crossorigin, 'preload': ['preload', ''], 'prefetch': ['prefetch', '']})  \ ],  \ 'main': [      \ flow_elements + ['style'], @@ -722,7 +723,7 @@ let g:xmldata_html5 = {  \ ],  \ 'script': [      \ [], -    \ extend(copy(global_attributes), {'src': [], 'defer': ['defer', ''], 'async': ['async', ''], 'type': [], 'charset': charset, 'nonce': []}) +    \ extend(copy(global_attributes), {'src': [], 'defer': ['defer', ''], 'async': ['async', ''], 'type': [], 'charset': charset, 'nonce': [], 'crossorigin': crossorigin})  \ ],  \ 'section': [      \ flow_elements + ['style'], @@ -834,7 +835,7 @@ let g:xmldata_html5 = {  \ ],  \ 'video': [      \ flow_elements + ['source', 'track'], -    \ extend(copy(global_attributes), {'autoplay': ['autoplay', ''], 'preload': ['none', 'metadata', 'auto', ''], 'controls': ['controls', ''], 'loop': ['loop', ''], 'playsinline': ['playsinline', ''], 'poster': [], 'height': [], 'width': [], 'src': []}) +    \ extend(copy(global_attributes), {'autoplay': ['autoplay', ''], 'preload': ['none', 'metadata', 'auto', ''], 'controls': ['controls', ''], 'loop': ['loop', ''], 'playsinline': ['playsinline', ''], 'poster': [], 'height': [], 'width': [], 'src': [], 'crossorigin': crossorigin})  \ ],  \ 'wbr': [      \ [], | 
