Skip to content

End offset for text containing entities is incorrect #3

Closed
@siefkenj

Description

@siefkenj

Initial checklist

Affected packages and versions

2.0.1

Link to runnable example

No response

Steps to reproduce

Exectue fromXml("<foo>text&amp;text</foo>")

Expected behavior

The offset position should start at 5 and end at 18

Actual behavior

The offset position should start at 5 and end at 15

Affected runtime and version

node@18.12.1

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions