diff --git a/lib/jasmine-jquery.js b/lib/jasmine-jquery.js
index 8d04cfa4..f3a71205 100644
--- a/lib/jasmine-jquery.js
+++ b/lib/jasmine-jquery.js
@@ -125,6 +125,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
async: false, // must be synchronous to guarantee that no tests are run before fixture is loaded
cache: false,
url: url,
+ dataType: 'html',
success: function (data, status, $xhr) {
htmlText = $xhr.responseText
}
diff --git a/spec/fixtures/fixture_with_checkbox_with_checked.html b/spec/fixtures/fixture_with_checkbox_with_checked.html
new file mode 100644
index 00000000..7af41b21
--- /dev/null
+++ b/spec/fixtures/fixture_with_checkbox_with_checked.html
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/spec/suites/jasmine-jquery-spec.js b/spec/suites/jasmine-jquery-spec.js
index dca11b37..fbf02de5 100644
--- a/spec/suites/jasmine-jquery-spec.js
+++ b/spec/suites/jasmine-jquery-spec.js
@@ -425,6 +425,15 @@ describe("jasmine.Fixtures using real AJAX call", function () {
expect($("#anchor_01").length).toBe(1)
})
})
+
+ describe("When the fixture contains a HTML 5 style checked checkbox", function () {
+ var fixtureUrl = "fixture_with_checkbox_with_checked.html"
+
+ it("Then the fixture is loaded successfully", function () {
+ jasmine.getFixtures().load(fixtureUrl)
+ expect('#' + jasmine.getFixtures().containerId).toContainElement('#checked-box')
+ })
+ })
})
describe("jQuery matcher", function () {