Skip to content

Commit d83ac7d

Browse files
committed
1.3.9
1 parent 35246b6 commit d83ac7d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
== 1.3.9
2+
3+
* Fix issue #14 in safari where an svg element in a form would prevent submission. Thanks to @oveddan (Dan Oved) for the fix (pull request #15)
4+
15
== 1.3.8
26

37
* fix removal of hidden fields in all browsers.

Diff for: lib/braintree.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
var Braintree = {
1010
sjcl: sjcl,
11-
version: "1.3.8"
11+
version: "1.3.9"
1212
};
1313

1414
Braintree.generateAesKey = function () {
@@ -95,7 +95,7 @@ Braintree.EncryptionClient = function (publicKey) {
9595

9696
if (child.nodeType === 1 && child.attributes["data-encrypted-name"]) {
9797
found.push(child);
98-
} else if (child.children.length > 0) {
98+
} else if (child.children && child.children.length > 0) {
9999
found = found.concat(findInputs(child));
100100
}
101101
}

Diff for: spec/braintree_form_spec.js

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ describe("Braintree#form", function() {
99
"<input type='text' data-encrypted-name='credit-card-cvv' value='cvv' />" +
1010
"<input type='text' name='card-holder-first-name' value='bob' />" +
1111
"<input name='expiration-month' value ='May'/>" +
12+
"<svg>" +
13+
"<circle cx='50' cy='50' r='40' stroke='black' fill='red' />" +
14+
"</svg>" +
1215
"<!-- example comment -->"+
1316
"<select data-encrypted-name='expiration-year'><option value='2013'>2013</option></select>" +
1417
"<div id ='foo'>" +

0 commit comments

Comments
 (0)