Skip to content
This repository
Browse code

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

…ringified
  • Loading branch information...
commit 355e7ff86eb18e00b51bae80e3ae399eb9199b2b 1 parent d494b7d
Francesco Longo authored December 18, 2012 piuccio committed December 18, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  src/aria/utils/Html.js
1  src/aria/utils/Html.js
@@ -54,6 +54,7 @@ Aria.classDefinition({
54 54
                             }
55 55
                         }
56 56
                     } else if (whiteList.test(key)) {
  57
+                        attribute = (attribute != null) ? attribute + "" : "";
57 58
                         result.push(" ", key, "=\"");
58 59
                         result.push(stringUtil.encodeForQuotedHTMLAttribute(attribute));
59 60
                         result.push("\"");

0 notes on commit 355e7ff

Please sign in to comment.
Something went wrong with that request. Please try again.