Syntax error
caesar1shi opened this issue · 1 comments
caesar1shi commented
in render.js
function setAttribute(key, attribs, data) {
let val = attribs[key]
if (!val) return
// TODO: check all non-strings here
if (val.constructor === Object) return
// attributes must be strings
if (val === 0 || 1 * val) val = attribs[key] = '' + val
Condition 'val === 0' is always false at this point because the false branch of the condition '!val' at line 59 has been taken
nobkd commented
Probably explains this: #227 (comment)
Probably related: #193
Edit: Those are mostly unrelated. Those from my examples never reach setAttribute
. Also, I think they have been fixed with a3b29f5 with processFor
(Release happened sometime later, but I probably didn't check again.)