@@ -369,6 +369,7 @@ let linkreltypes = linkreltypes + ['pgpkey']
369369" a and button are special elements for interactive, some element can't be its descendent
370370let abutton_dec = ' details\\|embed\\|iframe\\|keygen\\|label\\|menu\\|select\\|textarea'
371371
372+ let crossorigin = [' anonymous' , ' use-credentials' ]
372373
373374
374375let g: xmldata_html5 = {
@@ -580,7 +581,7 @@ let g:xmldata_html5 = {
580581\ ],
581582\ ' img' : [
582583 \ [],
583- \ 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' ]})
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 ' ] })
584585\ ],
585586\ ' input' : [
586587 \ [],
@@ -612,7 +613,7 @@ let g:xmldata_html5 = {
612613\ ],
613614\ ' link' : [
614615 \ [],
615- \ 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' ]})
616+ \ 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 })
616617\ ],
617618\ ' main' : [
618619 \ flow_elements + [' style' ],
@@ -720,7 +721,7 @@ let g:xmldata_html5 = {
720721\ ],
721722\ ' script' : [
722723 \ [],
723- \ extend (copy (global_attributes), {' src' : [], ' defer' : [' defer' , ' ' ], ' async' : [' async' , ' ' ], ' type' : [], ' charset' : charset, ' nonce' : []})
724+ \ extend (copy (global_attributes), {' src' : [], ' defer' : [' defer' , ' ' ], ' async' : [' async' , ' ' ], ' type' : [], ' charset' : charset, ' nonce' : [], ' crossorigin ' : crossorigin })
724725\ ],
725726\ ' section' : [
726727 \ flow_elements + [' style' ],
@@ -832,7 +833,7 @@ let g:xmldata_html5 = {
832833\ ],
833834\ ' video' : [
834835 \ flow_elements + [' source' , ' track' ],
835- \ extend (copy (global_attributes), {' autoplay' : [' autoplay' , ' ' ], ' preload' : [' none' , ' metadata' , ' auto' , ' ' ], ' controls' : [' controls' , ' ' ], ' loop' : [' loop' , ' ' ], ' playsinline' : [' playsinline' , ' ' ], ' poster' : [], ' height' : [], ' width' : [], ' src' : []})
836+ \ extend (copy (global_attributes), {' autoplay' : [' autoplay' , ' ' ], ' preload' : [' none' , ' metadata' , ' auto' , ' ' ], ' controls' : [' controls' , ' ' ], ' loop' : [' loop' , ' ' ], ' playsinline' : [' playsinline' , ' ' ], ' poster' : [], ' height' : [], ' width' : [], ' src' : [], ' crossorigin ' : crossorigin })
836837\ ],
837838\ ' wbr' : [
838839 \ [],
0 commit comments