Thanks for your lib. I'm using it in my xslt-action VS Code plugin. One of the users requested an issue. Parsing CDATA tags seems to work wrong. In cited line index i is incremented by 12 (correct) but for loop increment it once more and parsing continues in second char after CDATA tag instead of the first one. The same problem probably occurs with comments.
I think increment values should be 6 for comments and 11 for CDATA tags.
https://github.com/fiduswriter/xslt-processor/blob/36f2af419a559f9f1a1074cb9bd1db39393513d2/src/dom.js#L127
Hi,
Thanks for your lib. I'm using it in my xslt-action VS Code plugin. One of the users requested an issue. Parsing CDATA tags seems to work wrong. In cited line index
i
is incremented by 12 (correct) butfor
loop increment it once more and parsing continues in second char after CDATA tag instead of the first one. The same problem probably occurs with comments.I think increment values should be 6 for comments and 11 for CDATA tags.