Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.
This repository was archived by the owner on May 20, 2022. It is now read-only.

SVG support  #26

@fregante

Description

@fregante

Input

const check = <svg><iframe></iframe></svg>;

Output

const check = function () {
    var $$a = document.createElement('svg');
    var $$b = document.createElement('iframe');
    $$a.appendChild($$b);
    return $$a;
}.call(this);

Expected

const check = function () {
    var $$a = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
    var $$b = document.createElementNS('http://www.w3.org/2000/svg', 'iframe');
    $$a.appendChild($$b);
    return $$a;
}.call(this);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions