summaryrefslogtreecommitdiff
path: root/xml.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2013-04-18 02:19:37 -0700
committerJens Mönig <jens@moenig.org>2013-04-18 02:19:37 -0700
commitcfc84accea904bdac9e24ec0b95813e20e8bba3a (patch)
tree06b588cebe8c1c112ba9cb74ca5f3cac06301910 /xml.js
parentbf15956f614902c06dca8d3f97bbc371de54fb9b (diff)
parent8342c06e274333910fd97a92dd44cecfe8494511 (diff)
downloadsnap-cfc84accea904bdac9e24ec0b95813e20e8bba3a.tar.gz
snap-cfc84accea904bdac9e24ec0b95813e20e8bba3a.zip
Merge pull request #48 from queryselector/issue-47
Fixed #47
Diffstat (limited to 'xml.js')
-rw-r--r--xml.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/xml.js b/xml.js
index 877fff7..88ffd6d 100644
--- a/xml.js
+++ b/xml.js
@@ -246,7 +246,8 @@ XML_Element.prototype.toString = function (isFormatted, indentationLevel) {
// attributes, if any
for (key in this.attributes) {
- if (this.attributes.hasOwnProperty(key) && this.attributes[key]) {
+ if (Object.prototype.hasOwnProperty.call(this.attributes, key)
+ && this.attributes[key]) {
result += ' ' + key + '="' + this.attributes[key] + '"';
}
}