Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 2, 2014
1 parent d1bbb25 commit 2961478
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x-dom-serializer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Object.keys(attributes).forEach(function(k) {
var v = attributes[k];
if (v !== null && v !== undefined) {
// json properties can contain " so surround them with '
var sep = typeof v === 'string' && v.indexOf('"') >= 0 ? '\'' : '"';
html += ' ' + k + (v !== '' ? '=' + sep + v + sep: '');
}
Expand Down

0 comments on commit 2961478

Please sign in to comment.