From 0acf90228d482e84b14dddbeb16b79db26c11e84 Mon Sep 17 00:00:00 2001 From: Braintree Date: Wed, 5 Jun 2013 14:49:18 +0000 Subject: [PATCH] 1.3.4 --- CHANGELOG.md | 8 ++++++-- lib/braintree.js | 4 ++-- spec/braintree_form_spec.js | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3475ce..8816871 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ +== 1.3.4 + +* Fix issue in IE 8 and below or IE 9 in quirksmode where comment nodes were incorrectly being handled + == 1.3.3 -Fix encryptForm so it can be called any number of times, as before 1.3.1 +* Fix encryptForm so it can be called any number of times, as before 1.3.1 == 1.3.2 -Fix problem with select elements introduced in 1.3.1 +* Fix problem with select elements introduced in 1.3.1 == 1.3.1 diff --git a/lib/braintree.js b/lib/braintree.js index 8c301ff..6449395 100644 --- a/lib/braintree.js +++ b/lib/braintree.js @@ -8,7 +8,7 @@ var Braintree = { sjcl: sjcl, - version: "1.3.3" + version: "1.3.4" }; Braintree.generateAesKey = function () { @@ -93,7 +93,7 @@ Braintree.EncryptionClient = function (publicKey) { for (i = 0; i < children.length; i++) { child = children[i]; - if (child.attributes["data-encrypted-name"]) { + if (child.nodeType === 1 && child.attributes["data-encrypted-name"]) { found.push(child); } else if (child.children.length > 0) { found = found.concat(findInputs(child)); diff --git a/spec/braintree_form_spec.js b/spec/braintree_form_spec.js index c27864f..c9192fe 100644 --- a/spec/braintree_form_spec.js +++ b/spec/braintree_form_spec.js @@ -9,8 +9,10 @@ describe("Braintree#form", function() { "" + "" + "" + + ""+ "" + "
" + + " "+ " " + "
" + "" +