We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isFalse('') returns true do nothing, testing with Node.js 0.10.40.
function isFalse(s) { return typeof s !== 'number' && !s; } writeAttribute : function (name, content) { if (typeof content == 'function') { content = content(); } if (isFalse(content)) { return this; } return this.startAttribute(name).text(content).endAttribute(); }
The text was updated successfully, but these errors were encountered:
i am also having the similar issue: we can modify it as
writeAttribute : function (name, content) { if (typeof content == 'function') { content = content(); } return this.startAttribute(name).text(content).endAttribute(); }
or it can configurable whether to write empty string or not adding the attribute. perhaps we might need empty string for schema validation.
Sorry, something went wrong.
No branches or pull requests
isFalse('') returns true do nothing, testing with Node.js 0.10.40.
The text was updated successfully, but these errors were encountered: