Easy Tutorial
❮ Sel Contains Html Wrapall ❯

jQuery.isXMLDoc() Method

jQuery Miscellaneous Methods

Example

Determine if an object is within an XML document.

$(function () { 
    function fun( html ){ 
        document.body.innerHTML += "<br>" + html; 
    } 
    fun($.isXMLDoc(document));  //false
    fun($.isXMLDoc(document.body));  //false
})

Definition and Usage

The $.isXMLDoc() function is used to determine if a DOM node is within an XML document or if it is itself an XML document.


Syntax

Parameter Description
node Element type The DOM node to be evaluated.

jQuery Miscellaneous Methods

❮ Sel Contains Html Wrapall ❯