Open foxever opened 9 years ago
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.
isFalse('') returns true do nothing, testing with Node.js 0.10.40.