Mention attr with default value removal in README; add <style> default attr values

This commit is contained in:
Wilson Lin 2020-01-18 11:47:38 +11:00
commit b4f8a041b2
4 changed files with 10 additions and 8 deletions

View file

@ -981,7 +981,8 @@
"style": {
"boolean": false,
"redundant_if_empty": true,
"collapse_and_trim": false
"collapse_and_trim": false,
"default_value": "all"
}
},
"mediagroup": {
@ -1675,7 +1676,8 @@
"style": {
"boolean": false,
"redundant_if_empty": true,
"collapse_and_trim": false
"collapse_and_trim": false,
"default_value": "text/css"
}
},
"typeof": {

View file

@ -71,6 +71,10 @@ const defaultAttributeValues = {
tags: ['iframe', 'img'],
defaultValue: 'eager',
}],
'media': [{
tags: ['style'],
defaultValue: 'all',
}],
'method': [{
tags: ['form'],
defaultValue: 'get',
@ -99,7 +103,7 @@ const defaultAttributeValues = {
tags: ['input'],
defaultValue: 'text',
}, {
tags: ['link'],
tags: ['link', 'style'],
defaultValue: 'text/css',
}],
'width': [{