Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to add custom xmlns #2

Open
ctzurcanu opened this issue Jul 19, 2013 · 1 comment
Open

Inability to add custom xmlns #2

ctzurcanu opened this issue Jul 19, 2013 · 1 comment

Comments

@ctzurcanu
Copy link

The utility of having a "foreignobject" in SVG usually comes from other namespaces such as "http://www.w3.org/1999/xhtml" for HTML, etc.

Tried:

var fobj = canvas.foreignObject(100,100).attr({id: 'fobj'})
fobj.appendChild("body", {id: 'mydiv', 'xmlns': 'http://www.w3.org/1999/xhtml', innerText: "<input type='text' >"})   //or innerHTML

it does not change the "xmlns" attribute and that leads to not interpreting the "input" tag correctly.

@tingshuai
Copy link

I have the same question.

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

No branches or pull requests

2 participants