Comparing version 0.1.9 to 0.1.10
@@ -12,3 +12,3 @@ | ||
return value.replace(/["'&]/g, function (char) { | ||
return String(value || '').replace(/["'&]/g, function (char) { | ||
return toEscape[char]; | ||
@@ -15,0 +15,0 @@ }); |
{ | ||
"name": "formist", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A library to publish, consume and validate HTML5 forms.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,5 +88,6 @@ | ||
disabled: true, | ||
'value': 'this "should" be escaped' | ||
'value': 'this "should" be escaped', | ||
'data-order': 10 | ||
}); | ||
expect(tag.render()).to.equal('<input type="text" disabled value="this "should" be escaped" />'); | ||
expect(tag.render()).to.equal('<input type="text" disabled value="this "should" be escaped" data-order="10" />'); | ||
@@ -93,0 +94,0 @@ }); |
54945
1383