diff --git a/README.md b/README.md
index 1bca9d4e..724dcb9d 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a
```html
-
+
Click Me
diff --git a/dist/htmx.min.js.gz b/dist/htmx.min.js.gz
index ddef5415..f4fe9884 100644
Binary files a/dist/htmx.min.js.gz and b/dist/htmx.min.js.gz differ
diff --git a/package.json b/package.json
index 39cee6d3..460d2a61 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"AJAX",
"HTML"
],
- "version": "1.3.4",
+ "version": "1.3.3",
"homepage": "https://htmx.org/",
"bugs": {
"url": "https://github.com/bigskysoftware/htmx/issues"
diff --git a/www/docs.md b/www/docs.md
index 74e58b09..000c7697 100644
--- a/www/docs.md
+++ b/www/docs.md
@@ -101,7 +101,7 @@ It can be used via [NPM](https://www.npmjs.com/) as "`htmx.org`" or downloaded o
[unpkg](https://unpkg.com/browse/htmx.org/) or your other favorite NPM-based CDN:
``` html
-
+
```
For added security, you can load the script using [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
diff --git a/www/index.md b/www/index.md
index 41f57826..e2a012e8 100644
--- a/www/index.md
+++ b/www/index.md
@@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a
```html
-
+
Click Me
diff --git a/www/test/1.3.3/src/htmx.js b/www/test/1.3.3/src/htmx.js
index 65ce11fa..afa5f50b 100644
--- a/www/test/1.3.3/src/htmx.js
+++ b/www/test/1.3.3/src/htmx.js
@@ -49,7 +49,8 @@ return (function () {
swappingClass:'htmx-swapping',
allowEval:true,
attributesToSettle:["class", "style", "width", "height"],
- wsReconnectDelay: 'full-jitter'
+ wsReconnectDelay: 'full-jitter',
+ disableSelector: "[hx-disable], [data-hx-disable]",
},
parseInterval:parseInterval,
_:internalEval,
@@ -1355,6 +1356,9 @@ return (function () {
}
function initNode(elt) {
+ if (elt.closest && elt.closest(htmx.config.disableSelector)) {
+ return;
+ }
var nodeData = getInternalData(elt);
if (!nodeData.initialized) {
nodeData.initialized = true;
diff --git a/www/test/1.3.3/test/core/security.js b/www/test/1.3.3/test/core/security.js
new file mode 100644
index 00000000..d4be7216
--- /dev/null
+++ b/www/test/1.3.3/test/core/security.js
@@ -0,0 +1,32 @@
+describe("security options", function() {
+
+ beforeEach(function() {
+ this.server = makeServer();
+ clearWorkArea();
+ });
+ afterEach(function() {
+ this.server.restore();
+ clearWorkArea();
+ });
+
+ it("can disable a single elt", function(){
+ this.server.respondWith("GET", "/test", "Clicked!");
+
+ var btn = make('Initial ')
+ btn.click();
+ this.server.respond();
+ btn.innerHTML.should.equal("Initial");
+ })
+
+ it("can disable a parent elt", function(){
+ this.server.respondWith("GET", "/test", "Clicked!");
+
+ var div = make('Initial
')
+ var btn = byId("b1");
+ btn.click();
+ this.server.respond();
+ btn.innerHTML.should.equal("Initial");
+ })
+
+
+});
\ No newline at end of file
diff --git a/www/test/1.3.3/test/index.html b/www/test/1.3.3/test/index.html
index 0a71f109..1c87f939 100644
--- a/www/test/1.3.3/test/index.html
+++ b/www/test/1.3.3/test/index.html
@@ -85,6 +85,7 @@
+