chushihua
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
const acceptValue = ['input','textarea','option','select']
|
||||
module.exports = (tag, type, attr) => {
|
||||
return (
|
||||
(attr === 'value' && acceptValue.includes(tag)) && type !== 'button' ||
|
||||
(attr === 'selected' && tag === 'option') ||
|
||||
(attr === 'checked' && tag === 'input') ||
|
||||
(attr === 'muted' && tag === 'video')
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user