googlefonts / googlefonts/picosvg

Work when missing xmlns="http://www.w3.org/2000/svg"

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
220
Forks
17
PR merge metrics
No merged PRs in 30d

Description

An svg that doesn't declare `xmlns="http://www.w3.org/2000/svg"` fails picosvg, for example:

```svg

```

results in:

```shell
ValueError: Unable to convert to picosvg: BadElement: /svg[0]/g[1],BadElement: /svg[0]/g[1]/path[0],BadElement: /svg[0]/g[1]/path[1]
```

Contributor guide

Open the contributing guide

Research direction

Start by running the provided SVG through picosvg and tracing the conversion path that rejects the missing namespace. Done means this SVG is accepted and converted without the reported BadElement errors; no source file or test is named in the issue, so locate the relevant namespace handling and add coverage there.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.