Not able to send in expression literal for attributes
Given following code:
input: {
inherit: 'input',
attributes: {
...html5.input.attributes,
name: [/hej/],
},
},
Gives following error when running html-validate
> Error: Element metadata is not valid: /input/attributes/name/0: type should be string
at new UserError (C:\my-repo\node_modules\html-validate\build\error\user-error.js:4:1)
Edited by Olof Fredriksson