You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be very useful. As it is, it's pretty confusing that this just appears to replicate a standard API and the docs make no mention of it or why you should or shouldn't use this instead of the API.
@rooby Sorry for the late reply.
I agree that the documentation is not very clear about how far xmldom covers which spec, or how it relates to those specs.
But I'm quite certain about this aspect:
and the docs make no mention of it or why you should or shouldn't use this instead of the API.
I would think it only makes sense to use xmldom over the native API, if you need to be able to deal with XML outside of browser (runtimes).
One could even only use xmldom in a code base, if the APIs it mimics are not available, but this of course bears the risk that the code behaves differently between different runtimes, just because xmldom implements things slightly different than the browsers do.
I added some more information as part of #211, please have a look and comment if you think something is missing or not clear.
xmldom
seems to be like a "ponyfill" ([1], [2]) for some standard Web APIsI really like the arguments for "ponyfill" and would favor documenting this.
[1] https://github.com/sindresorhus/ponyfill
[2] https://ponyfoo.com/articles/polyfills-or-ponyfills
The text was updated successfully, but these errors were encountered: