Skip to content

Commit

Permalink
emit empty attribute values for fidelity
Browse files Browse the repository at this point in the history
  • Loading branch information
donpark committed Apr 25, 2011
1 parent 6a8a05d commit f9fe755
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/html2jade.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Helper
result = []
for attr in attrs
nodeName = attr.nodeName
if nodeName isnt 'id' and nodeName isnt 'class' and attr.nodeValue
if nodeName isnt 'id' and nodeName isnt 'class' and typeof attr.nodeValue?
result.push attr.nodeName + '=\'' + attr.nodeValue.replace(/'/g, '\\\'') + '\''
if result.length > 0
'(' + result.join(', ') + ')'
Expand Down
2 changes: 1 addition & 1 deletion lib/html2jade.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "html2jade",
"description": "HTML to Jade conversion tool",
"version": "0.0.4",
"version": "0.0.5",
"author": "Don Park <donpark@docuverse.com>",
"repository": "git://github.com/donpark/html2jade.git",
"main": "./lib/html2jade.js",
Expand Down

0 comments on commit f9fe755

Please sign in to comment.