Changed the error message to be more descriptive

Added test
pull/6217/head
rster20002 5 years ago
parent 19e434fba7
commit 58e3339862

@ -333,7 +333,7 @@ function read_attribute(parser: Parser, unique_names: Set<string>) {
if (name === null) {
parser.error({
code: 'empty-attribute-value',
message: 'Empty attribute shorthand'
message: 'Attribute shorthand cannot be empty'
}, start);
}

@ -0,0 +1,10 @@
{
"code": "empty-attribute-value",
"message": "Attribute shorthand cannot be empty",
"start": {
"line": 1,
"column": 6,
"character": 6
},
"pos": 6
}
Loading…
Cancel
Save