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

SVG support #26

Open
fregante opened this issue Jul 7, 2017 · 1 comment
Open

SVG support #26

fregante opened this issue Jul 7, 2017 · 1 comment

Comments

@fregante
Copy link
Contributor

fregante commented Jul 7, 2017

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);
@treycordova
Copy link
Owner

treycordova commented Jul 18, 2017

This is definitely something I want to get to. It's been on my https://github.com/treycordova/nativejsx#wish-list for ages. If someone finds the bandwidth, I'd love a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants