We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e56bf commit 4db0537Copy full SHA for 4db0537
xmlua/document.lua
@@ -314,7 +314,11 @@ do -- C14N methods
314
function methods:canonicalize(select, opts)
315
select = select or {} -- default to include all nodes in the output
316
opts = opts or {}
317
- local with_comments = opts.with_comments and 1 or 0 -- default = not including comments
+
318
+ local with_comments = 0 -- default = not including comments
319
+ if opts.with_comments then
320
+ with_comments = 1
321
+ end
322
323
local mode = opts.mode or DEFAULT_C14N_MODE
324
if not C14N_MODES_LOOKUP[mode] then
0 commit comments