mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 16:28:58 +00:00
dom: use DOMError.InvalidCharacter
This commit is contained in:
@@ -49,7 +49,7 @@ pub const DOMTokenList = struct {
|
|||||||
return parser.DOMError.Syntax;
|
return parser.DOMError.Syntax;
|
||||||
}
|
}
|
||||||
for (token) |c| {
|
for (token) |c| {
|
||||||
if (std.ascii.isWhitespace(c)) return error.InvalidCharacter;
|
if (std.ascii.isWhitespace(c)) return parser.DOMError.InvalidCharacter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user