feat(compiler): update the schema by extracting from latest chrome (#17858)
adds: - the slot element, - the slot attribute on [Element], - a few other attributes.
This commit is contained in:
parent
b116901400
commit
dd7c1134e3
|
@ -76,160 +76,161 @@ const OBJECT = 'object';
|
||||||
//
|
//
|
||||||
// =================================================================================================
|
// =================================================================================================
|
||||||
|
|
||||||
const SCHEMA:
|
const SCHEMA: string[] = [
|
||||||
string[] =
|
'[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot' +
|
||||||
[
|
/* added manually to avoid breaking changes */
|
||||||
'[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop',
|
',*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored',
|
||||||
'[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
'[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
||||||
'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
||||||
'media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume',
|
'media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume',
|
||||||
':svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex',
|
':svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex',
|
||||||
':svg:graphics^:svg:|',
|
':svg:graphics^:svg:|',
|
||||||
':svg:animation^:svg:|*begin,*end,*repeat',
|
':svg:animation^:svg:|*begin,*end,*repeat',
|
||||||
':svg:geometry^:svg:|',
|
':svg:geometry^:svg:|',
|
||||||
':svg:componentTransferFunction^:svg:|',
|
':svg:componentTransferFunction^:svg:|',
|
||||||
':svg:gradient^:svg:|',
|
':svg:gradient^:svg:|',
|
||||||
':svg:textContent^:svg:graphics|',
|
':svg:textContent^:svg:graphics|',
|
||||||
':svg:textPositioning^:svg:textContent|',
|
':svg:textPositioning^:svg:textContent|',
|
||||||
'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username',
|
'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username',
|
||||||
'area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username',
|
'area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username',
|
||||||
'audio^media|',
|
'audio^media|',
|
||||||
'br^[HTMLElement]|clear',
|
'br^[HTMLElement]|clear',
|
||||||
'base^[HTMLElement]|href,target',
|
'base^[HTMLElement]|href,target',
|
||||||
'body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',
|
'body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',
|
||||||
'button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',
|
'button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',
|
||||||
'canvas^[HTMLElement]|#height,#width',
|
'canvas^[HTMLElement]|#height,#width',
|
||||||
'content^[HTMLElement]|select',
|
'content^[HTMLElement]|select',
|
||||||
'dl^[HTMLElement]|!compact',
|
'dl^[HTMLElement]|!compact',
|
||||||
'datalist^[HTMLElement]|',
|
'datalist^[HTMLElement]|',
|
||||||
'details^[HTMLElement]|!open',
|
'details^[HTMLElement]|!open',
|
||||||
'dialog^[HTMLElement]|!open,returnValue',
|
'dialog^[HTMLElement]|!open,returnValue',
|
||||||
'dir^[HTMLElement]|!compact',
|
'dir^[HTMLElement]|!compact',
|
||||||
'div^[HTMLElement]|align',
|
'div^[HTMLElement]|align',
|
||||||
'embed^[HTMLElement]|align,height,name,src,type,width',
|
'embed^[HTMLElement]|align,height,name,src,type,width',
|
||||||
'fieldset^[HTMLElement]|!disabled,name',
|
'fieldset^[HTMLElement]|!disabled,name',
|
||||||
'font^[HTMLElement]|color,face,size',
|
'font^[HTMLElement]|color,face,size',
|
||||||
'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',
|
'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',
|
||||||
'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',
|
'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',
|
||||||
'frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',
|
'frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',
|
||||||
'hr^[HTMLElement]|align,color,!noShade,size,width',
|
'hr^[HTMLElement]|align,color,!noShade,size,width',
|
||||||
'head^[HTMLElement]|',
|
'head^[HTMLElement]|',
|
||||||
'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',
|
'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',
|
||||||
'html^[HTMLElement]|version',
|
'html^[HTMLElement]|version',
|
||||||
'iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',
|
'iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',
|
||||||
'img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',
|
'img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',
|
||||||
'input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',
|
'input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',
|
||||||
'keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name',
|
'li^[HTMLElement]|type,#value',
|
||||||
'li^[HTMLElement]|type,#value',
|
'label^[HTMLElement]|htmlFor',
|
||||||
'label^[HTMLElement]|htmlFor',
|
'legend^[HTMLElement]|align',
|
||||||
'legend^[HTMLElement]|align',
|
'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type',
|
||||||
'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type',
|
'map^[HTMLElement]|name',
|
||||||
'map^[HTMLElement]|name',
|
'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',
|
||||||
'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',
|
'menu^[HTMLElement]|!compact',
|
||||||
'menu^[HTMLElement]|!compact',
|
'meta^[HTMLElement]|content,httpEquiv,name,scheme',
|
||||||
'meta^[HTMLElement]|content,httpEquiv,name,scheme',
|
'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',
|
||||||
'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',
|
'ins,del^[HTMLElement]|cite,dateTime',
|
||||||
'ins,del^[HTMLElement]|cite,dateTime',
|
'ol^[HTMLElement]|!compact,!reversed,#start,type',
|
||||||
'ol^[HTMLElement]|!compact,!reversed,#start,type',
|
'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',
|
||||||
'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',
|
'optgroup^[HTMLElement]|!disabled,label',
|
||||||
'optgroup^[HTMLElement]|!disabled,label',
|
'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',
|
||||||
'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',
|
'output^[HTMLElement]|defaultValue,%htmlFor,name,value',
|
||||||
'output^[HTMLElement]|defaultValue,%htmlFor,name,value',
|
'p^[HTMLElement]|align',
|
||||||
'p^[HTMLElement]|align',
|
'param^[HTMLElement]|name,type,value,valueType',
|
||||||
'param^[HTMLElement]|name,type,value,valueType',
|
'picture^[HTMLElement]|',
|
||||||
'picture^[HTMLElement]|',
|
'pre^[HTMLElement]|#width',
|
||||||
'pre^[HTMLElement]|#width',
|
'progress^[HTMLElement]|#max,#value',
|
||||||
'progress^[HTMLElement]|#max,#value',
|
'q,blockquote,cite^[HTMLElement]|',
|
||||||
'q,blockquote,cite^[HTMLElement]|',
|
'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type',
|
||||||
'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type',
|
'select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
|
||||||
'select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
|
'shadow^[HTMLElement]|',
|
||||||
'shadow^[HTMLElement]|',
|
'slot^[HTMLElement]|name',
|
||||||
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
||||||
'span^[HTMLElement]|',
|
'span^[HTMLElement]|',
|
||||||
'style^[HTMLElement]|!disabled,media,type',
|
'style^[HTMLElement]|!disabled,media,type',
|
||||||
'caption^[HTMLElement]|align',
|
'caption^[HTMLElement]|align',
|
||||||
'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',
|
'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',
|
||||||
'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',
|
'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',
|
||||||
'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',
|
'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',
|
||||||
'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',
|
'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',
|
||||||
'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',
|
'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',
|
||||||
'template^[HTMLElement]|',
|
'template^[HTMLElement]|',
|
||||||
'textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',
|
'textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',
|
||||||
'title^[HTMLElement]|text',
|
'title^[HTMLElement]|text',
|
||||||
'track^[HTMLElement]|!default,kind,label,src,srclang',
|
'track^[HTMLElement]|!default,kind,label,src,srclang',
|
||||||
'ul^[HTMLElement]|!compact,type',
|
'ul^[HTMLElement]|!compact,type',
|
||||||
'unknown^[HTMLElement]|',
|
'unknown^[HTMLElement]|',
|
||||||
'video^media|#height,poster,#width',
|
'video^media|#height,poster,#width',
|
||||||
':svg:a^:svg:graphics|',
|
':svg:a^:svg:graphics|',
|
||||||
':svg:animate^:svg:animation|',
|
':svg:animate^:svg:animation|',
|
||||||
':svg:animateMotion^:svg:animation|',
|
':svg:animateMotion^:svg:animation|',
|
||||||
':svg:animateTransform^:svg:animation|',
|
':svg:animateTransform^:svg:animation|',
|
||||||
':svg:circle^:svg:geometry|',
|
':svg:circle^:svg:geometry|',
|
||||||
':svg:clipPath^:svg:graphics|',
|
':svg:clipPath^:svg:graphics|',
|
||||||
':svg:cursor^:svg:|',
|
':svg:defs^:svg:graphics|',
|
||||||
':svg:defs^:svg:graphics|',
|
':svg:desc^:svg:|',
|
||||||
':svg:desc^:svg:|',
|
':svg:discard^:svg:|',
|
||||||
':svg:discard^:svg:|',
|
':svg:ellipse^:svg:geometry|',
|
||||||
':svg:ellipse^:svg:geometry|',
|
':svg:feBlend^:svg:|',
|
||||||
':svg:feBlend^:svg:|',
|
':svg:feColorMatrix^:svg:|',
|
||||||
':svg:feColorMatrix^:svg:|',
|
':svg:feComponentTransfer^:svg:|',
|
||||||
':svg:feComponentTransfer^:svg:|',
|
':svg:feComposite^:svg:|',
|
||||||
':svg:feComposite^:svg:|',
|
':svg:feConvolveMatrix^:svg:|',
|
||||||
':svg:feConvolveMatrix^:svg:|',
|
':svg:feDiffuseLighting^:svg:|',
|
||||||
':svg:feDiffuseLighting^:svg:|',
|
':svg:feDisplacementMap^:svg:|',
|
||||||
':svg:feDisplacementMap^:svg:|',
|
':svg:feDistantLight^:svg:|',
|
||||||
':svg:feDistantLight^:svg:|',
|
':svg:feDropShadow^:svg:|',
|
||||||
':svg:feDropShadow^:svg:|',
|
':svg:feFlood^:svg:|',
|
||||||
':svg:feFlood^:svg:|',
|
':svg:feFuncA^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncA^:svg:componentTransferFunction|',
|
':svg:feFuncB^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncB^:svg:componentTransferFunction|',
|
':svg:feFuncG^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncG^:svg:componentTransferFunction|',
|
':svg:feFuncR^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncR^:svg:componentTransferFunction|',
|
':svg:feGaussianBlur^:svg:|',
|
||||||
':svg:feGaussianBlur^:svg:|',
|
':svg:feImage^:svg:|',
|
||||||
':svg:feImage^:svg:|',
|
':svg:feMerge^:svg:|',
|
||||||
':svg:feMerge^:svg:|',
|
':svg:feMergeNode^:svg:|',
|
||||||
':svg:feMergeNode^:svg:|',
|
':svg:feMorphology^:svg:|',
|
||||||
':svg:feMorphology^:svg:|',
|
':svg:feOffset^:svg:|',
|
||||||
':svg:feOffset^:svg:|',
|
':svg:fePointLight^:svg:|',
|
||||||
':svg:fePointLight^:svg:|',
|
':svg:feSpecularLighting^:svg:|',
|
||||||
':svg:feSpecularLighting^:svg:|',
|
':svg:feSpotLight^:svg:|',
|
||||||
':svg:feSpotLight^:svg:|',
|
':svg:feTile^:svg:|',
|
||||||
':svg:feTile^:svg:|',
|
':svg:feTurbulence^:svg:|',
|
||||||
':svg:feTurbulence^:svg:|',
|
':svg:filter^:svg:|',
|
||||||
':svg:filter^:svg:|',
|
':svg:foreignObject^:svg:graphics|',
|
||||||
':svg:foreignObject^:svg:graphics|',
|
':svg:g^:svg:graphics|',
|
||||||
':svg:g^:svg:graphics|',
|
':svg:image^:svg:graphics|',
|
||||||
':svg:image^:svg:graphics|',
|
':svg:line^:svg:geometry|',
|
||||||
':svg:line^:svg:geometry|',
|
':svg:linearGradient^:svg:gradient|',
|
||||||
':svg:linearGradient^:svg:gradient|',
|
':svg:mpath^:svg:|',
|
||||||
':svg:mpath^:svg:|',
|
':svg:marker^:svg:|',
|
||||||
':svg:marker^:svg:|',
|
':svg:mask^:svg:|',
|
||||||
':svg:mask^:svg:|',
|
':svg:metadata^:svg:|',
|
||||||
':svg:metadata^:svg:|',
|
':svg:path^:svg:geometry|',
|
||||||
':svg:path^:svg:geometry|',
|
':svg:pattern^:svg:|',
|
||||||
':svg:pattern^:svg:|',
|
':svg:polygon^:svg:geometry|',
|
||||||
':svg:polygon^:svg:geometry|',
|
':svg:polyline^:svg:geometry|',
|
||||||
':svg:polyline^:svg:geometry|',
|
':svg:radialGradient^:svg:gradient|',
|
||||||
':svg:radialGradient^:svg:gradient|',
|
':svg:rect^:svg:geometry|',
|
||||||
':svg:rect^:svg:geometry|',
|
':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',
|
||||||
':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',
|
':svg:script^:svg:|type',
|
||||||
':svg:script^:svg:|type',
|
':svg:set^:svg:animation|',
|
||||||
':svg:set^:svg:animation|',
|
':svg:stop^:svg:|',
|
||||||
':svg:stop^:svg:|',
|
':svg:style^:svg:|!disabled,media,title,type',
|
||||||
':svg:style^:svg:|!disabled,media,title,type',
|
':svg:switch^:svg:graphics|',
|
||||||
':svg:switch^:svg:graphics|',
|
':svg:symbol^:svg:|',
|
||||||
':svg:symbol^:svg:|',
|
':svg:tspan^:svg:textPositioning|',
|
||||||
':svg:tspan^:svg:textPositioning|',
|
':svg:text^:svg:textPositioning|',
|
||||||
':svg:text^:svg:textPositioning|',
|
':svg:textPath^:svg:textContent|',
|
||||||
':svg:textPath^:svg:textContent|',
|
':svg:title^:svg:|',
|
||||||
':svg:title^:svg:|',
|
':svg:use^:svg:graphics|',
|
||||||
':svg:use^:svg:graphics|',
|
':svg:view^:svg:|#zoomAndPan',
|
||||||
':svg:view^:svg:|#zoomAndPan',
|
'data^[HTMLElement]|value',
|
||||||
'data^[HTMLElement]|value',
|
'keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name',
|
||||||
'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',
|
'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',
|
||||||
'summary^[HTMLElement]|',
|
'summary^[HTMLElement]|',
|
||||||
'time^[HTMLElement]|dateTime',
|
'time^[HTMLElement]|dateTime',
|
||||||
];
|
':svg:cursor^:svg:|',
|
||||||
|
];
|
||||||
|
|
||||||
const _ATTR_TO_PROP: {[name: string]: string} = {
|
const _ATTR_TO_PROP: {[name: string]: string} = {
|
||||||
'class': 'className',
|
'class': 'className',
|
||||||
|
|
|
@ -35,6 +35,7 @@ const MISSING_FROM_CHROME: {[el: string]: string[]} = {
|
||||||
['type', 'label', 'icon', '!disabled', '!checked', 'radiogroup', '!default'],
|
['type', 'label', 'icon', '!disabled', '!checked', 'radiogroup', '!default'],
|
||||||
'summary^[HTMLElement]': [],
|
'summary^[HTMLElement]': [],
|
||||||
'time^[HTMLElement]': ['dateTime'],
|
'time^[HTMLElement]': ['dateTime'],
|
||||||
|
':svg:cursor^:svg:': [],
|
||||||
};
|
};
|
||||||
|
|
||||||
const _G: any = global;
|
const _G: any = global;
|
||||||
|
@ -45,19 +46,7 @@ export function extractSchema(): Map<string, string[]>|null {
|
||||||
const SVGGraphicsElement = _G['SVGGraphicsElement'];
|
const SVGGraphicsElement = _G['SVGGraphicsElement'];
|
||||||
if (!SVGGraphicsElement) return null;
|
if (!SVGGraphicsElement) return null;
|
||||||
|
|
||||||
const SVGAnimationElement = _G['SVGAnimationElement'];
|
|
||||||
const SVGGeometryElement = _G['SVGGeometryElement'];
|
|
||||||
const SVGComponentTransferFunctionElement = _G['SVGComponentTransferFunctionElement'];
|
|
||||||
const SVGGradientElement = _G['SVGGradientElement'];
|
|
||||||
const SVGTextContentElement = _G['SVGTextContentElement'];
|
|
||||||
const SVGTextPositioningElement = _G['SVGTextPositioningElement'];
|
|
||||||
const element = document.createElement('video');
|
const element = document.createElement('video');
|
||||||
const svgAnimation = document.createElementNS('http://www.w3.org/2000/svg', 'set');
|
|
||||||
const svgPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
||||||
const svgFeFuncA = document.createElementNS('http://www.w3.org/2000/svg', 'feFuncA');
|
|
||||||
const svgGradient = document.createElementNS('http://www.w3.org/2000/svg', 'linearGradient');
|
|
||||||
const svgText = document.createElementNS('http://www.w3.org/2000/svg', 'text');
|
|
||||||
|
|
||||||
const descMap: Map<string, string[]> = new Map();
|
const descMap: Map<string, string[]> = new Map();
|
||||||
const visited: {[name: string]: boolean} = {};
|
const visited: {[name: string]: boolean} = {};
|
||||||
|
|
||||||
|
@ -69,6 +58,19 @@ export function extractSchema(): Map<string, string[]>|null {
|
||||||
extractProperties(HTMLMediaElement, element, visited, descMap, 'media', HTMLELEMENT_IF);
|
extractProperties(HTMLMediaElement, element, visited, descMap, 'media', HTMLELEMENT_IF);
|
||||||
|
|
||||||
// SVG top level
|
// SVG top level
|
||||||
|
const svgAnimation = document.createElementNS('http://www.w3.org/2000/svg', 'set');
|
||||||
|
const svgPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
||||||
|
const svgFeFuncA = document.createElementNS('http://www.w3.org/2000/svg', 'feFuncA');
|
||||||
|
const svgGradient = document.createElementNS('http://www.w3.org/2000/svg', 'linearGradient');
|
||||||
|
const svgText = document.createElementNS('http://www.w3.org/2000/svg', 'text');
|
||||||
|
|
||||||
|
const SVGAnimationElement = _G['SVGAnimationElement'];
|
||||||
|
const SVGGeometryElement = _G['SVGGeometryElement'];
|
||||||
|
const SVGComponentTransferFunctionElement = _G['SVGComponentTransferFunctionElement'];
|
||||||
|
const SVGGradientElement = _G['SVGGradientElement'];
|
||||||
|
const SVGTextContentElement = _G['SVGTextContentElement'];
|
||||||
|
const SVGTextPositioningElement = _G['SVGTextPositioningElement'];
|
||||||
|
|
||||||
extractProperties(SVGElement, svgText, visited, descMap, SVG_PREFIX, HTMLELEMENT_IF);
|
extractProperties(SVGElement, svgText, visited, descMap, SVG_PREFIX, HTMLELEMENT_IF);
|
||||||
extractProperties(
|
extractProperties(
|
||||||
SVGGraphicsElement, svgText, visited, descMap, SVG_PREFIX + 'graphics', SVG_PREFIX);
|
SVGGraphicsElement, svgText, visited, descMap, SVG_PREFIX + 'graphics', SVG_PREFIX);
|
||||||
|
|
|
@ -213,165 +213,166 @@ export function attributeType(element: string, attribute: string): string|string
|
||||||
return compose(elements[element.toUpperCase()] || defaultAttributes)[attribute.toLowerCase()];
|
return compose(elements[element.toUpperCase()] || defaultAttributes)[attribute.toLowerCase()];
|
||||||
}
|
}
|
||||||
|
|
||||||
// This section is describes the DOM property surface of a DOM element and is dervided from
|
// This section is describes the DOM property surface of a DOM element and is derivgulp formated
|
||||||
|
// from
|
||||||
// from the SCHEMA strings from the security context information. SCHEMA is copied here because
|
// from the SCHEMA strings from the security context information. SCHEMA is copied here because
|
||||||
// it would be an unnecessary risk to allow this array to be imported from the security context
|
// it would be an unnecessary risk to allow this array to be imported from the security context
|
||||||
// schema registry.
|
// schema registry.
|
||||||
|
const SCHEMA: string[] = [
|
||||||
const SCHEMA:
|
'[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot' +
|
||||||
string[] =
|
/* added manually to avoid breaking changes */
|
||||||
[
|
',*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored',
|
||||||
'[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop',
|
'[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
||||||
'[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
||||||
'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',
|
'media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume',
|
||||||
'media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume',
|
':svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex',
|
||||||
':svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex',
|
':svg:graphics^:svg:|',
|
||||||
':svg:graphics^:svg:|',
|
':svg:animation^:svg:|*begin,*end,*repeat',
|
||||||
':svg:animation^:svg:|*begin,*end,*repeat',
|
':svg:geometry^:svg:|',
|
||||||
':svg:geometry^:svg:|',
|
':svg:componentTransferFunction^:svg:|',
|
||||||
':svg:componentTransferFunction^:svg:|',
|
':svg:gradient^:svg:|',
|
||||||
':svg:gradient^:svg:|',
|
':svg:textContent^:svg:graphics|',
|
||||||
':svg:textContent^:svg:graphics|',
|
':svg:textPositioning^:svg:textContent|',
|
||||||
':svg:textPositioning^:svg:textContent|',
|
'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username',
|
||||||
'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username',
|
'area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username',
|
||||||
'area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username',
|
'audio^media|',
|
||||||
'audio^media|',
|
'br^[HTMLElement]|clear',
|
||||||
'br^[HTMLElement]|clear',
|
'base^[HTMLElement]|href,target',
|
||||||
'base^[HTMLElement]|href,target',
|
'body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',
|
||||||
'body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',
|
'button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',
|
||||||
'button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',
|
'canvas^[HTMLElement]|#height,#width',
|
||||||
'canvas^[HTMLElement]|#height,#width',
|
'content^[HTMLElement]|select',
|
||||||
'content^[HTMLElement]|select',
|
'dl^[HTMLElement]|!compact',
|
||||||
'dl^[HTMLElement]|!compact',
|
'datalist^[HTMLElement]|',
|
||||||
'datalist^[HTMLElement]|',
|
'details^[HTMLElement]|!open',
|
||||||
'details^[HTMLElement]|!open',
|
'dialog^[HTMLElement]|!open,returnValue',
|
||||||
'dialog^[HTMLElement]|!open,returnValue',
|
'dir^[HTMLElement]|!compact',
|
||||||
'dir^[HTMLElement]|!compact',
|
'div^[HTMLElement]|align',
|
||||||
'div^[HTMLElement]|align',
|
'embed^[HTMLElement]|align,height,name,src,type,width',
|
||||||
'embed^[HTMLElement]|align,height,name,src,type,width',
|
'fieldset^[HTMLElement]|!disabled,name',
|
||||||
'fieldset^[HTMLElement]|!disabled,name',
|
'font^[HTMLElement]|color,face,size',
|
||||||
'font^[HTMLElement]|color,face,size',
|
'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',
|
||||||
'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',
|
'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',
|
||||||
'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',
|
'frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',
|
||||||
'frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',
|
'hr^[HTMLElement]|align,color,!noShade,size,width',
|
||||||
'hr^[HTMLElement]|align,color,!noShade,size,width',
|
'head^[HTMLElement]|',
|
||||||
'head^[HTMLElement]|',
|
'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',
|
||||||
'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',
|
'html^[HTMLElement]|version',
|
||||||
'html^[HTMLElement]|version',
|
'iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',
|
||||||
'iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',
|
'img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',
|
||||||
'img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',
|
'input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',
|
||||||
'input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',
|
'li^[HTMLElement]|type,#value',
|
||||||
'keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name',
|
'label^[HTMLElement]|htmlFor',
|
||||||
'li^[HTMLElement]|type,#value',
|
'legend^[HTMLElement]|align',
|
||||||
'label^[HTMLElement]|htmlFor',
|
'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type',
|
||||||
'legend^[HTMLElement]|align',
|
'map^[HTMLElement]|name',
|
||||||
'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type',
|
'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',
|
||||||
'map^[HTMLElement]|name',
|
'menu^[HTMLElement]|!compact',
|
||||||
'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',
|
'meta^[HTMLElement]|content,httpEquiv,name,scheme',
|
||||||
'menu^[HTMLElement]|!compact',
|
'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',
|
||||||
'meta^[HTMLElement]|content,httpEquiv,name,scheme',
|
'ins,del^[HTMLElement]|cite,dateTime',
|
||||||
'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',
|
'ol^[HTMLElement]|!compact,!reversed,#start,type',
|
||||||
'ins,del^[HTMLElement]|cite,dateTime',
|
'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',
|
||||||
'ol^[HTMLElement]|!compact,!reversed,#start,type',
|
'optgroup^[HTMLElement]|!disabled,label',
|
||||||
'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',
|
'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',
|
||||||
'optgroup^[HTMLElement]|!disabled,label',
|
'output^[HTMLElement]|defaultValue,%htmlFor,name,value',
|
||||||
'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',
|
'p^[HTMLElement]|align',
|
||||||
'output^[HTMLElement]|defaultValue,%htmlFor,name,value',
|
'param^[HTMLElement]|name,type,value,valueType',
|
||||||
'p^[HTMLElement]|align',
|
'picture^[HTMLElement]|',
|
||||||
'param^[HTMLElement]|name,type,value,valueType',
|
'pre^[HTMLElement]|#width',
|
||||||
'picture^[HTMLElement]|',
|
'progress^[HTMLElement]|#max,#value',
|
||||||
'pre^[HTMLElement]|#width',
|
'q,blockquote,cite^[HTMLElement]|',
|
||||||
'progress^[HTMLElement]|#max,#value',
|
'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type',
|
||||||
'q,blockquote,cite^[HTMLElement]|',
|
'select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
|
||||||
'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type',
|
'shadow^[HTMLElement]|',
|
||||||
'select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
|
'slot^[HTMLElement]|name',
|
||||||
'shadow^[HTMLElement]|',
|
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
||||||
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
'span^[HTMLElement]|',
|
||||||
'span^[HTMLElement]|',
|
'style^[HTMLElement]|!disabled,media,type',
|
||||||
'style^[HTMLElement]|!disabled,media,type',
|
'caption^[HTMLElement]|align',
|
||||||
'caption^[HTMLElement]|align',
|
'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',
|
||||||
'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',
|
'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',
|
||||||
'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',
|
'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',
|
||||||
'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',
|
'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',
|
||||||
'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',
|
'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',
|
||||||
'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',
|
'template^[HTMLElement]|',
|
||||||
'template^[HTMLElement]|',
|
'textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',
|
||||||
'textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',
|
'title^[HTMLElement]|text',
|
||||||
'title^[HTMLElement]|text',
|
'track^[HTMLElement]|!default,kind,label,src,srclang',
|
||||||
'track^[HTMLElement]|!default,kind,label,src,srclang',
|
'ul^[HTMLElement]|!compact,type',
|
||||||
'ul^[HTMLElement]|!compact,type',
|
'unknown^[HTMLElement]|',
|
||||||
'unknown^[HTMLElement]|',
|
'video^media|#height,poster,#width',
|
||||||
'video^media|#height,poster,#width',
|
':svg:a^:svg:graphics|',
|
||||||
':svg:a^:svg:graphics|',
|
':svg:animate^:svg:animation|',
|
||||||
':svg:animate^:svg:animation|',
|
':svg:animateMotion^:svg:animation|',
|
||||||
':svg:animateMotion^:svg:animation|',
|
':svg:animateTransform^:svg:animation|',
|
||||||
':svg:animateTransform^:svg:animation|',
|
':svg:circle^:svg:geometry|',
|
||||||
':svg:circle^:svg:geometry|',
|
':svg:clipPath^:svg:graphics|',
|
||||||
':svg:clipPath^:svg:graphics|',
|
':svg:defs^:svg:graphics|',
|
||||||
':svg:cursor^:svg:|',
|
':svg:desc^:svg:|',
|
||||||
':svg:defs^:svg:graphics|',
|
':svg:discard^:svg:|',
|
||||||
':svg:desc^:svg:|',
|
':svg:ellipse^:svg:geometry|',
|
||||||
':svg:discard^:svg:|',
|
':svg:feBlend^:svg:|',
|
||||||
':svg:ellipse^:svg:geometry|',
|
':svg:feColorMatrix^:svg:|',
|
||||||
':svg:feBlend^:svg:|',
|
':svg:feComponentTransfer^:svg:|',
|
||||||
':svg:feColorMatrix^:svg:|',
|
':svg:feComposite^:svg:|',
|
||||||
':svg:feComponentTransfer^:svg:|',
|
':svg:feConvolveMatrix^:svg:|',
|
||||||
':svg:feComposite^:svg:|',
|
':svg:feDiffuseLighting^:svg:|',
|
||||||
':svg:feConvolveMatrix^:svg:|',
|
':svg:feDisplacementMap^:svg:|',
|
||||||
':svg:feDiffuseLighting^:svg:|',
|
':svg:feDistantLight^:svg:|',
|
||||||
':svg:feDisplacementMap^:svg:|',
|
':svg:feDropShadow^:svg:|',
|
||||||
':svg:feDistantLight^:svg:|',
|
':svg:feFlood^:svg:|',
|
||||||
':svg:feDropShadow^:svg:|',
|
':svg:feFuncA^:svg:componentTransferFunction|',
|
||||||
':svg:feFlood^:svg:|',
|
':svg:feFuncB^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncA^:svg:componentTransferFunction|',
|
':svg:feFuncG^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncB^:svg:componentTransferFunction|',
|
':svg:feFuncR^:svg:componentTransferFunction|',
|
||||||
':svg:feFuncG^:svg:componentTransferFunction|',
|
':svg:feGaussianBlur^:svg:|',
|
||||||
':svg:feFuncR^:svg:componentTransferFunction|',
|
':svg:feImage^:svg:|',
|
||||||
':svg:feGaussianBlur^:svg:|',
|
':svg:feMerge^:svg:|',
|
||||||
':svg:feImage^:svg:|',
|
':svg:feMergeNode^:svg:|',
|
||||||
':svg:feMerge^:svg:|',
|
':svg:feMorphology^:svg:|',
|
||||||
':svg:feMergeNode^:svg:|',
|
':svg:feOffset^:svg:|',
|
||||||
':svg:feMorphology^:svg:|',
|
':svg:fePointLight^:svg:|',
|
||||||
':svg:feOffset^:svg:|',
|
':svg:feSpecularLighting^:svg:|',
|
||||||
':svg:fePointLight^:svg:|',
|
':svg:feSpotLight^:svg:|',
|
||||||
':svg:feSpecularLighting^:svg:|',
|
':svg:feTile^:svg:|',
|
||||||
':svg:feSpotLight^:svg:|',
|
':svg:feTurbulence^:svg:|',
|
||||||
':svg:feTile^:svg:|',
|
':svg:filter^:svg:|',
|
||||||
':svg:feTurbulence^:svg:|',
|
':svg:foreignObject^:svg:graphics|',
|
||||||
':svg:filter^:svg:|',
|
':svg:g^:svg:graphics|',
|
||||||
':svg:foreignObject^:svg:graphics|',
|
':svg:image^:svg:graphics|',
|
||||||
':svg:g^:svg:graphics|',
|
':svg:line^:svg:geometry|',
|
||||||
':svg:image^:svg:graphics|',
|
':svg:linearGradient^:svg:gradient|',
|
||||||
':svg:line^:svg:geometry|',
|
':svg:mpath^:svg:|',
|
||||||
':svg:linearGradient^:svg:gradient|',
|
':svg:marker^:svg:|',
|
||||||
':svg:mpath^:svg:|',
|
':svg:mask^:svg:|',
|
||||||
':svg:marker^:svg:|',
|
':svg:metadata^:svg:|',
|
||||||
':svg:mask^:svg:|',
|
':svg:path^:svg:geometry|',
|
||||||
':svg:metadata^:svg:|',
|
':svg:pattern^:svg:|',
|
||||||
':svg:path^:svg:geometry|',
|
':svg:polygon^:svg:geometry|',
|
||||||
':svg:pattern^:svg:|',
|
':svg:polyline^:svg:geometry|',
|
||||||
':svg:polygon^:svg:geometry|',
|
':svg:radialGradient^:svg:gradient|',
|
||||||
':svg:polyline^:svg:geometry|',
|
':svg:rect^:svg:geometry|',
|
||||||
':svg:radialGradient^:svg:gradient|',
|
':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',
|
||||||
':svg:rect^:svg:geometry|',
|
':svg:script^:svg:|type',
|
||||||
':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',
|
':svg:set^:svg:animation|',
|
||||||
':svg:script^:svg:|type',
|
':svg:stop^:svg:|',
|
||||||
':svg:set^:svg:animation|',
|
':svg:style^:svg:|!disabled,media,title,type',
|
||||||
':svg:stop^:svg:|',
|
':svg:switch^:svg:graphics|',
|
||||||
':svg:style^:svg:|!disabled,media,title,type',
|
':svg:symbol^:svg:|',
|
||||||
':svg:switch^:svg:graphics|',
|
':svg:tspan^:svg:textPositioning|',
|
||||||
':svg:symbol^:svg:|',
|
':svg:text^:svg:textPositioning|',
|
||||||
':svg:tspan^:svg:textPositioning|',
|
':svg:textPath^:svg:textContent|',
|
||||||
':svg:text^:svg:textPositioning|',
|
':svg:title^:svg:|',
|
||||||
':svg:textPath^:svg:textContent|',
|
':svg:use^:svg:graphics|',
|
||||||
':svg:title^:svg:|',
|
':svg:view^:svg:|#zoomAndPan',
|
||||||
':svg:use^:svg:graphics|',
|
'data^[HTMLElement]|value',
|
||||||
':svg:view^:svg:|#zoomAndPan',
|
'keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name',
|
||||||
'data^[HTMLElement]|value',
|
'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',
|
||||||
'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',
|
'summary^[HTMLElement]|',
|
||||||
'summary^[HTMLElement]|',
|
'time^[HTMLElement]|dateTime',
|
||||||
'time^[HTMLElement]|dateTime',
|
':svg:cursor^:svg:|',
|
||||||
];
|
];
|
||||||
|
|
||||||
const attrToPropMap: {[name: string]: string} = <any>{
|
const attrToPropMap: {[name: string]: string} = <any>{
|
||||||
'class': 'className',
|
'class': 'className',
|
||||||
|
|
Loading…
Reference in New Issue