Skip to content

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

Description

@heaven

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.

Activity

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

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