diff options
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/ajax.js | 10 | ||||
-rw-r--r-- | test/core/regressions.js | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/core/ajax.js b/test/core/ajax.js index 00e677df..58603e85 100644 --- a/test/core/ajax.js +++ b/test/core/ajax.js @@ -1237,6 +1237,11 @@ describe("Core htmx AJAX Tests", function(){ }) it('properly handles inputs external to form', function () { + if (!supportsFormAttribute()) { + this._runnable.title += " - Skipped as IE11 doesn't support form attribute" + this.skip() + return + } var values; this.server.respondWith("Post", "/test", function (xhr) { values = getParameters(xhr); @@ -1287,6 +1292,11 @@ describe("Core htmx AJAX Tests", function(){ }) it("can associate submit buttons from outside a form with the current version of the form after swap", function(){ + if (!supportsFormAttribute()) { + this._runnable.title += " - Skipped as IE11 doesn't support form attribute" + this.skip() + return + } const template = '<form ' + 'id="hello" ' + 'hx-target="#hello" ' + diff --git a/test/core/regressions.js b/test/core/regressions.js index 6a8c8e66..bd6c2277 100644 --- a/test/core/regressions.js +++ b/test/core/regressions.js @@ -246,6 +246,11 @@ describe("Core htmx Regression Tests", function(){ }) it("script tags only execute once using templates", function(done) { + if (!supportsTemplates()) { + this._runnable.title += " - Skipped as IE11 doesn't support templates" + this.skip() + return + } var oldUseTemplateFragmentsValue = htmx.config.useTemplateFragments htmx.config.useTemplateFragments = true @@ -267,6 +272,11 @@ describe("Core htmx Regression Tests", function(){ }) it("script tags only execute once when nested using templates", function(done) { + if (!supportsTemplates()) { + this._runnable.title += " - Skipped as IE11 doesn't support templates" + this.skip() + return + } var oldUseTemplateFragmentsValue = htmx.config.useTemplateFragments htmx.config.useTemplateFragments = true |