Skip to content

SyntaxError when selectors use special characters #92

@just-boris

Description

@just-boris

CSS selectors may include special characters and they will remain valid selectors

document.querySelector(":not(#\\9)") // this works

However nwsapi fails while trying to parse the same selector

NW.Dom.match(":not(#\\9)"); // Fails with SyntaxError: \8 and \9 are not allowed in strict mode.

Live codesandbox to reproduce: https://codesandbox.io/s/nwsapi-syntax-error-r6wqfd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions