Permalink
Browse files

fix #295 attributes different from null and undefined are properly st…

…ringified
  • Loading branch information...
1 parent d494b7d commit 355e7ff86eb18e00b51bae80e3ae399eb9199b2b @flongo flongo committed with Fabio Crisci Dec 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/aria/utils/Html.js
View
@@ -54,6 +54,7 @@ Aria.classDefinition({
}
}
} else if (whiteList.test(key)) {
+ attribute = (attribute != null) ? attribute + "" : "";
result.push(" ", key, "=\"");
result.push(stringUtil.encodeForQuotedHTMLAttribute(attribute));
result.push("\"");

0 comments on commit 355e7ff

Please sign in to comment.