jQuery.isXMLDoc()Method
Example
Determine whether an object is in an XML document
$(function () {
function fun( html ){
document.body.innerHTML += "<br>" + html;
}
fun($.isXMLDoc(document)); //false
fun($.isXMLDoc(document.body)); //false
})
Try it »
Definition and Usage
The $.isXMLDoc() function is used to determine whether a DOM node is located in an XML document, or is itself an XML document.
Syntax
$.isXMLDoc( node )
| Parameters | Description |
|---|---|
| node | Element type The DOM node to be checked. |
Other Extensions
jQuery Miscellaneous Methods