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

fix: correctly handle svg class attribute within parseClassList #6085

Merged
merged 2 commits into from
Dec 25, 2024

Conversation

dwirz
Copy link
Contributor

@dwirz dwirz commented Dec 23, 2024

What is the current behavior?

An error is thrown during the virtual DOM render when attempting to parse the class list of an svg tag inside a custom element. This occurs because the class property on an svg element is not a string but an object of type SVGAnimatedString.

What is the new behavior?

Correctly parse the class list of a svg elements.

Documentation

None.

Does this introduce a breaking change?

  • Yes
  • No

Testing

Added a new wdio test, which checks for console.error logs.

Other information

None.

@dwirz dwirz requested a review from a team as a code owner December 23, 2024 13:09
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@christian-bromann christian-bromann merged commit 5d29255 into ionic-team:main Dec 25, 2024
88 checks passed
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

Successfully merging this pull request may close these issues.

2 participants