eeue56 / eeue56/elm-html-test

Surprising behavior with namespaced Svg Attributes

Open
#14 2 comments 0 reactions 0 assignees View on GitHub

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.

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.