@@ -23,39 +23,6 @@ export const isBooleanAttr = makeMap(
23
23
'truespeed,typemustmatch,visible'
24
24
)
25
25
26
- const isAttr = makeMap (
27
- 'accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
28
- 'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' +
29
- 'checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,' +
30
- 'name,contenteditable,contextmenu,controls,coords,data,datetime,default,' +
31
- 'defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,' +
32
- 'form,formaction,headers,<th>,height,hidden,high,href,hreflang,http-equiv,' +
33
- 'icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,' +
34
- 'manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,' +
35
- 'muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,' +
36
- 'preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,' +
37
- 'scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,' +
38
- 'spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,' +
39
- 'target,title,type,usemap,value,width,wrap'
40
- )
41
-
42
- /* istanbul ignore next */
43
- const isRenderableAttr = ( name : string ) : boolean => {
44
- return (
45
- isAttr ( name ) ||
46
- name . indexOf ( 'data-' ) === 0 ||
47
- name . indexOf ( 'aria-' ) === 0
48
- )
49
- }
50
- export { isRenderableAttr }
51
-
52
- export const propsToAttrMap = {
53
- acceptCharset : 'accept-charset' ,
54
- className : 'class' ,
55
- htmlFor : 'for' ,
56
- httpEquiv : 'http-equiv'
57
- }
58
-
59
26
export const xlinkNS = 'http://www.w3.org/1999/xlink'
60
27
61
28
export const isXlink = ( name : string ) : boolean => {
0 commit comments