Skip to content

Commit a7a17c3

Browse files
committed
img decoding
1 parent 916085d commit a7a17c3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

autoload/xml/html5.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ let g:xmldata_html5 = {
581581
\ ],
582582
\ 'img': [
583583
\ [],
584-
\ 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']})
584+
\ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'decoding': ['async', 'sync', 'auto'], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': ['anonymous', 'use-credentials']})
585585
\ ],
586586
\ 'input': [
587587
\ [],

syntax/html.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ syn keyword htmlArg contained integrity crossorigin
124124
" <link>
125125
syn keyword htmlArg contained prefetch
126126
" syn keyword htmlArg contained preload
127+
" <img>
128+
syn keyword htmlArg contained decoding
127129

128130
" Custom Data Attributes
129131
" http://w3c.github.io/html/single-page.html#embedding-custom-non-visible-data-with-the-data-attributes

0 commit comments

Comments
 (0)