Skip to content

instanceof Text broken in v6 — exported Text class differs from internal parser Text #2256

Description

@d4nzS

Expected Behavior

When using the replace callback, domNode instanceof Text should return true for text nodes.

Actual Behavior

domNode instanceof Text returns false for all nodes in v6, even though domNode.constructor.name is "Text".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions