mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
Merge pull request #1327 from lightpanda-io/zigdom-cdata-length
Fix `dom/nodes/CharacterData-appendData` WPT
This commit is contained in:
@@ -147,7 +147,7 @@ pub fn format(self: *const CData, writer: *std.io.Writer) !void {
|
||||
}
|
||||
|
||||
pub fn getLength(self: *const CData) usize {
|
||||
return self._data.len;
|
||||
return std.unicode.utf8CountCodepoints(self._data) catch self._data.len;
|
||||
}
|
||||
|
||||
pub fn isEqualNode(self: *const CData, other: *const CData) bool {
|
||||
|
||||
Reference in New Issue
Block a user