fix(compiler): allow binding to autocomplete property on select and textarea elements (#40928)
Updates the schema to allow binding to the `autocomplete` property of a `textarea` or `select`. Fixes #39490. PR Close #40928
This commit is contained in:
parent
736b1f9fd4
commit
97b88f3631
|
@ -140,7 +140,7 @@ const SCHEMA: string[] = [
|
||||||
'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]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
|
||||||
'shadow^[HTMLElement]|',
|
'shadow^[HTMLElement]|',
|
||||||
'slot^[HTMLElement]|name',
|
'slot^[HTMLElement]|name',
|
||||||
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
||||||
|
@ -153,7 +153,7 @@ const SCHEMA: string[] = [
|
||||||
'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,autocomplete,!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',
|
||||||
|
|
|
@ -285,7 +285,7 @@ const SCHEMA: string[] = [
|
||||||
'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]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
|
||||||
'shadow^[HTMLElement]|',
|
'shadow^[HTMLElement]|',
|
||||||
'slot^[HTMLElement]|name',
|
'slot^[HTMLElement]|name',
|
||||||
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
'source^[HTMLElement]|media,sizes,src,srcset,type',
|
||||||
|
@ -298,7 +298,7 @@ const SCHEMA: string[] = [
|
||||||
'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,autocomplete,!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',
|
||||||
|
|
Loading…
Reference in New Issue