Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: node.className.split is not a function #36

Open
heaven opened this issue Jan 19, 2023 · 0 comments
Open

TypeError: node.className.split is not a function #36

heaven opened this issue Jan 19, 2023 · 0 comments

Comments

@heaven
Copy link

heaven commented Jan 19, 2023

Happens when selecting an SVG.

TypeError: node.className.split is not a function
    at window.DomPredictionHelper.DomPredictionHelper.cssDescriptor (selectorgadget_combined.js:11018:33)
    at window.DomPredictionHelper.DomPredictionHelper.pathOf (selectorgadget_combined.js:10998:30)
    at window.DomPredictionHelper.DomPredictionHelper.getPathsFor (selectorgadget_combined.js:11311:25)
    at window.DomPredictionHelper.DomPredictionHelper.predictCss (selectorgadget_combined.js:11322:29)
    at window.SelectorGadget.SelectorGadget.sgMousedown (selectorgadget_combined.js:11760:45)
    at HTMLDivElement.dispatch (selectorgadget_combined.js:5430:27)
    at elemData.handle (selectorgadget_combined.js:5234:28)

When I check node.className it is not a string but an instance of SVGAnimatedString.

heaven added a commit to codeart/selectorgadget that referenced this issue Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant