mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Merge pull request #1670 from lightpanda-io/cdata_sso
Change CData._data from []const to String (SSO)
This commit is contained in:
@@ -307,7 +307,11 @@ pub const Writer = struct {
|
||||
try w.write(dom_node.getNodeName(&name_buf));
|
||||
|
||||
try w.objectField("nodeValue");
|
||||
try w.write(dom_node.getNodeValue() orelse "");
|
||||
if (dom_node.getNodeValue()) |nv| {
|
||||
try w.write(nv.str());
|
||||
} else {
|
||||
try w.write("");
|
||||
}
|
||||
|
||||
if (include_child_count) {
|
||||
try w.objectField("childNodeCount");
|
||||
|
||||
Reference in New Issue
Block a user