Skip to content

Parser error for attribute transform #326

@Mbodin

Description

@Mbodin

When I tried the following program:

let%svg test = "<g transform='translate(1,1)'></g>"

I got this error:

Error: Value of transform must be an SVG transform

I'm very surprised as the corresponding parser looks correct:

let transform =

Here follow the versions of my dependencies. I'm pinning to specific commits to get this fix: aantron/markup.ml#69

tyxml-ppx: github:ocsigen/tyxml:tyxml-ppx.opam#d2916535536f2134bad7793a598ba5b7327cae41@a609c0aa
tyxml@opam:4.6.0@5ced2c2c
tyxml-syntax@opam:4.6.0@0e4fa721
markup: github:aantron/markup.ml#d77da228ed8915b6f11fbea00c269cfd5fd9e84a

My environment is a bit dirty at the moment. Does it reproduce on your side?

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions