Skip to content

Fix #766 SVGParser will parse the class attribute as Node Tag.#787

Open
ty0x2333 wants to merge 1 commit intoexyte:masterfrom
ty0x2333:svg_class_tag
Open

Fix #766 SVGParser will parse the class attribute as Node Tag.#787
ty0x2333 wants to merge 1 commit intoexyte:masterfrom
ty0x2333:svg_class_tag

Conversation

@ty0x2333
Copy link
Copy Markdown

@ty0x2333 ty0x2333 commented Mar 7, 2022

I use Macaw for SVG rendering.

I have the same problem as #766

I need to dynamically modify the style by class. But there is no way to get nodes by class.

SVGParser currently only parses id as a Node Tag. This Pull Request parses class as a Node Tag as well.

This way, the node of the specified class can be found by the node.nodesBy(tag:) method without breaking the original design.

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.

1 participant