[Pkg-javascript-commits] [ltx] 281/469: Fix number issues
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 7d0bb29b0d0f04977281dc7ead59df1ee82be1c0
Author: Lloyd Watkin <lloyd at evilprofessor.co.uk>
Date: Fri Dec 13 20:36:34 2013 +0000
Fix number issues
---
lib/element.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/element.js b/lib/element.js
index 18a1c24..d017284 100644
--- a/lib/element.js
+++ b/lib/element.js
@@ -259,7 +259,7 @@ Element.prototype.write = function(writer) {
writer(k);
writer("=\"");
if (typeof v != 'string')
- v = v.toString();
+ v = v.toString(10);
writer(escapeXml(v));
writer("\"");
}
@@ -277,7 +277,7 @@ Element.prototype.write = function(writer) {
else if (typeof child === 'string')
writer(escapeXmlText(child));
else if (child.toString)
- writer(escapeXmlText(child.toString()));
+ writer(escapeXmlText(child.toString(10)));
}
}
writer("</");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list