jQuery API

jQuery.isXMLDoc()

jQuery.isXMLDoc( node ) Returns: Boolean

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

  • version added: 1.1.4jQuery.isXMLDoc( node )

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

Example:

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

jQuery.isXMLDoc(document) // false
jQuery.isXMLDoc(document.body) // false

Comments

  • Support requests, bug reports, and off-topic comments will be deleted without warning.

  • Please do post corrections or additional examples for jQuery.isXMLDoc() below. We aim to quickly move corrections into the documentation.
  • If you need help, post at the forums or in the #jquery IRC channel.
  • Report bugs on the bug tracker or the jQuery Forum.
  • Discussions about the API specifically should be addressed in the Developing jQuery Core forum.