Surprising behavior with namespaced Svg Attributes
Open
Nobody has claimed this yet.
bug
- Dominant language
- Elm
- Stars
- 68
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Does this test library also support testing svg view attributes?
Say I have this svg:
viewImage : Int -> Int -> String -> Svg msg
viewImage width height url =
image
[ Attr.width (toString width)
, Attr.height (toString height)
, Attr.xlinkHref url
]
[]
The xlink:href attribute does not show up in the failed test.

Perhaps this is just a bug with certain svg attributes, and if so i can rename this issue/try to make a PR to fix the behavior.
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 issue with the shown Elm viewImage example and Attr.xlinkHref. Inspect how the test library handles namespaced SVG attributes; done means xlink:href appears in failed-test output or the project clearly documents that it is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elm
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100