Example 1 — Official HTML Page Checks
The jQuery API samples: page document and body are not XML.
console.log($.isXMLDoc(document)); // false
console.log($.isXMLDoc(document.body)); // false How It Works
- HTML document. The page root is
<html>, not an XML root. - Body node.
document.bodylives in that same HTML document. - Result. Both official samples return
false.

