Property -> attribute correlation
g105b opened this issue · 0 comments
g105b commented
Certain Element properties directly map to the element's attribute. A mechanism needs to be provided to directly map between properties and attributes, as to not have an enormous amount of repeating code.
Here's a list of properties I have researched:
-
accept
-
acceptCharset
attr:accept-charset
-
accessKey
attr:accesskey
-
action
-
async
(bool) -
autofocus
(bool) -
autoplay
(bool) -
alt
-
autocapitalize
-
autocomplete
-
autofocus
(bool) -
charset
-
checked
(bool) -
cite
-
cols
-
contentEditable
attr:contenteditable
-
controls
(bool) -
data
-
dateTime
attr:datetime
-
defer
(bool) -
disabled
(bool) -
dir
-
draggable
(bool) -
download
- on an Anchor Element, specifies the name of the file to download -
encoding
attr:enctype
-
enctype
-
form
-
height
-
high
-
htmlFor
attr: for -
href
-
kind
-
label
-
lang
-
loop
(bool) -
low
-
min
-
max
-
maxLength
attr:maxlength
-
mediaGroup
attr:mediagroup
-
multiple
(bool) -
muted
(bool) -
name
-
optimum
-
pattern
-
placeholder
-
poster
-
preload
-
readOnly
(bool) attr:readonly
-
rel
-
reversed
(bool) -
required
(bool) -
rows
-
start
-
step
-
style
-
selected
(bool) -
size
-
span
-
src
-
srcset
-
tabindex
-
target
-
title
-
type
-
width
-
wrap