dom: implement document.characterSet

This commit is contained in:
Pierre Tachoire
2023-11-22 10:58:26 +01:00
parent 3ebc9a18ad
commit ec06190327
2 changed files with 7 additions and 3 deletions

View File

@@ -54,10 +54,8 @@ pub const Document = struct {
return "CSS1Compat";
}
// TODO implement characterSet
pub fn get_characterSet(self: *parser.Document) []const u8 {
_ = self;
return "UTF-8";
return parser.documentGetInputEncoding(self);
}
// alias of get_characterSet