Skip to content

Parsing CDATA - wrong index incrementation #13

@mari6274

Description

@mari6274

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) 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions