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(ivy): DebugNode.classes not working on SVG elements #34872

Closed

Conversation

crisbeto
Copy link
Member

Fixes Ivy throwing an error when trying to access the DebugNode.classes of an SVG element. The problem is that the className of an SVG element is an SVGAnimatedString, rather than a plain string.

Fixes #34868.

@crisbeto crisbeto force-pushed the 34868/debug-node-class-name branch 4 times, most recently from df61342 to 3bb6dae Compare January 20, 2020 19:14
@crisbeto crisbeto marked this pull request as ready for review January 20, 2020 19:30
@crisbeto crisbeto requested review from a team as code owners January 20, 2020 19:30
@crisbeto crisbeto added comp: ivy action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release type: bug/fix labels Jan 20, 2020
@ngbot ngbot bot modified the milestone: needsTriage Jan 20, 2020
Fixes Ivy throwing an error when trying to access the `DebugNode.classes` of an SVG element. The problem is that the `className` of an SVG element is an `SVGAnimatedString`, rather than a plain string.

Fixes angular#34868.
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 22, 2020
@AndrewKushnir AndrewKushnir removed the action: presubmit The PR is in need of a google3 presubmit label Jan 22, 2020
AndrewKushnir pushed a commit that referenced this pull request Jan 22, 2020
Fixes Ivy throwing an error when trying to access the `DebugNode.classes` of an SVG element. The problem is that the `className` of an SVG element is an `SVGAnimatedString`, rather than a plain string.

Fixes #34868.

PR Close #34872
sonukapoor pushed a commit to sonukapoor/angular that referenced this pull request Feb 13, 2020
Fixes Ivy throwing an error when trying to access the `DebugNode.classes` of an SVG element. The problem is that the `className` of an SVG element is an `SVGAnimatedString`, rather than a plain string.

Fixes angular#34868.

PR Close angular#34872
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DebugElement.classes does not work for SVG elements in Ivy
4 participants