diff --git a/src/htmx.js b/src/htmx.js index a898982d..f41c8a92 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -595,6 +595,8 @@ return (function () { return [document]; } else if (selector === 'window') { return [window]; + } else if (selector === 'body') { + return [document.body]; } else { return getDocument().querySelectorAll(normalizeSelector(selector)); }