dom: use DOMError.InvalidCharacter

This commit is contained in:
Pierre Tachoire
2023-12-12 16:41:38 +01:00
parent 5c8d3eba31
commit dde13c42cf

View File

@@ -49,7 +49,7 @@ pub const DOMTokenList = struct {
return parser.DOMError.Syntax;
}
for (token) |c| {
if (std.ascii.isWhitespace(c)) return error.InvalidCharacter;
if (std.ascii.isWhitespace(c)) return parser.DOMError.InvalidCharacter;
}
}