Closed raarts closed 1 year ago
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it.
I found another bug: textnodes are suddenly being created when I use transformTagName. Tracing what happens, a question arises: why aren't transformTagName (and removeNSPrefix) implemented in compress(), just before the JSON property is created? That would be the logical location.
@raarts transformAttributeName
and transformTagName
are not the options for builder but for parser only. compress
is an internal method the purpose of that to prettify the ordered json into normal json. Because ordered json is big list of nodes.
Can you please add more detail on "I found another bug: textnodes are suddenly being created when I use transformTagName. "?
Indeed. I found it in the source code in the Builder options, but it doesn't do anything.
About the other bug: I was using parseTagValue, but when I added transformTagName suddenly #text nodes again were generated. I can't reproduce it any more, since I switched to xmls-js, I needed to import and then re-export while translating tags and attribute names. Sorry for wasting your time, I should have closed this bug report.
no issue. I have commented unnecessary function in the recent release. Thanks
Description
TypeScript gives an error when trying to add transformTagName or transformAttributeName to the options
Side issue: there a small bug in OrderedObjsParser, there's a blank between
this.
andoptions
. JS is forgiving so doesn't break anything, but still.Input
n/a
Code
Output
expected data
Would you like to work on this issue?