jQuery.isXMLDoc()

Check to see if a DOM node is within an XML document (or is an XML document).

jQuery.isXMLDoc(node)🡢 Boolean

node ElementThe DOM node that will be checked to see if it's in an XML document.

Check an object to see if it's in an XML document.

HTML
jQuery.isXMLDoc(document); // false
jQuery.isXMLDoc(document.body); // false
DEMO

Looking for a Web Developer?

👋

Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)