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

Support browsers #28

Closed
oozcitak opened this issue Jun 29, 2020 · 3 comments
Closed

Support browsers #28

oozcitak opened this issue Jun 29, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@oozcitak
Copy link
Owner

As xmlbuilder2 can also be used in the browser, it should support major browsers. See: oozcitak/dom#2

@oozcitak
Copy link
Owner Author

oozcitak commented Jul 2, 2020

This should be fixed with version 2.1.6. I could only add a few browser tests at the moment; so please report any issues you run into. Also in order to use the library on IE11, you need to polyfill Proxy and Reflect, e.g.:

<script type = "text/javascript" src = "es6-proxy-polyfill.js"></script>
<script type = "text/javascript" src = "reflect.js"></script>
<script type = "text/javascript" src = "xmlbuilder2.min.js"></script>

@oozcitak oozcitak closed this as completed Jul 2, 2020
@Nunomcg
Copy link

Nunomcg commented Jul 3, 2020

Thank you!
xmlbuilder2 2.1.6 is working fine for me on IE11.
The polyfills were not necessary on my Angular 9 project.

@christopherthurnher
Copy link

I updated my Angular 9 project to xmlbuilder2 2.1.6, then I got the error:

ERROR ReferenceError: "Proxy" ist undefiniert

So I tried to polyfill Proxy and Reflect as you mentioned above. I added the following lines to my polyfill.ts

import 'es6-proxy-polyfill/dist/es6-proxy-polyfill'
import 'harmony-reflect/reflect'

Now I get an Error in IE11 when starting the Application:

"global" ist undefiniert (global is not defined)

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

No branches or pull requests

3 participants