astro/ltx — Issue #1: Doesn't correctly print attrs of a child element if the value is 0
Author: sarlalian
Created: 2011-12-07 02:14:56+00:00
State: open

Example Code:

cl.send(new xmpp.Element('presence', { to: room_jid }).c('x', { xmlns: 'http://jabber.org/protocol/muc' }).history({ maxchars: 0}));

The fix for line 199 in element.js is replace

if (v || v === ''){

with

if (v || v === '' || v === 0) {