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

[IE Browser] Auto add "?XML:NAMESPACE" tag into string formbuilder #327

Closed
tritrumkt opened this issue Nov 16, 2016 · 4 comments
Closed

Comments

@tritrumkt
Copy link

tritrumkt commented Nov 16, 2016

Hi ,
please help me to solve error as the below
HTML

<textarea name="fb-template" id="fb-template"> </textarea>

I use XmlDocument to read value of fb-template ,it "OK" on FF,Chrome.
But on IE , $(fb-template).val() have "<?XML:NAMESPACE PREFIX = "PUBLIC" NS = "URN:COMPONENT" />" string ,which auto adding.
So , XMLDocument cannot load it .
Please introduce me to remove the above string in $(fb-template).val() .
Thanks.

@kevinchappell
Copy link
Owner

It sounds like IE may be adding that attribute but there are better ways to get the data now. http://formbuilder.readthedocs.io/en/latest/formBuilder/demos/data/

@tritrumkt
Copy link
Author

tritrumkt commented Nov 21, 2016

Hi @kevinchappell ,
Thank you for your comment.
I've seen the link but not solved my problem.
The result:
2016-11-21_103434

Please help me to solve it.
Thanks.

@priyesh875
Copy link

Hi @tritrumkt,

i had the same issue and i have resolved this issue by adding below line in form.builder.js.
Line 2406 xmlField = _helpers.markup('field', fieldContent, xmlAttrs);
add below line, it will resolve this.
Line 2407 xmlField.getElementsByTagName("field");

Review below link for your reference.
http://jsfiddle.net/K72vD/

@kevinchappell
Copy link
Owner

resolved in v2.2.2

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

3 participants