Missing ID during nested `svg` resolving
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 348
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<svg id="unique">
<rect width="10" height="10"/>
</svg>
</svg>
will be parsed as:
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<defs/>
<path fill="#000000" stroke="none" d="M 0 0 L 10 0 L 10 10 L 0 10 Z"/>
</svg>
We should preserve the ID.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the nested SVG example from the issue and tracing the nested svg resolving path. The fix is complete when the id="unique" attribute is preserved in the parsed or resolved output, without regressing the rendered rectangle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100