Skip to content

manifestXmlJsonml doesn't work with numerical attributes #56

@fugu13

Description

@fugu13

With the example from the standard library docs (reproduced below), manifestXmlJsonml fails with Cannot call manifestXmlJsonml on class ujson.Num.

The example:

std.manifestXmlJsonml([
  'svg', { height: 100, width: 100 },
  [
    'circle', {
      cx: 50, cy: 50, r: 40,
       stroke: 'black', 'stroke-width': 3,
       fill: 'red',
    }
  ],
])

Per the docs, the expected value is XML equivalent to:

<svg height="100" width="100">
  <circle cx="50" cy="50" fill="red" r="40"
  stroke="black" stroke-width="3"></circle>
</svg>

I've verified that's the return value in the jsonnet.org editable text areas.

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