candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.33k stars 370 forks source link

XHTML - Tables do not work #485

Open FourEyedPanda opened 8 years ago

FourEyedPanda commented 8 years ago

It doesn't seem like tables work or I might be doing something wrong.

SleekXMPP python code:

self.send_message(mto=msg['from'].bare,
                          mbody='testing',
                          mhtml='<table><tr><td>LANGUAGE</td><td>HOW FUN?</td></tr><tr><td>Java</td><td>4.5 out of 5</td></tr><tr><td>Lisp</td><td>1.2 out of 5</td></tr><tr><td>C++</td><td>3.8 out of 5</td></tr></table>',
                          mtype='groupchat')

Message ends up being:

<message to="user@conference.site" type="groupchat" xml:lang="en"><body>testing</body><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><table><tr><td>LANGUAGE</td><td>HOW FUN?</td></tr><tr><td>Java</td><td>4.5 out of 5</td></tr><tr><td>Lisp</td><td>1.2 out of 5</td></tr><tr><td>C++</td><td>3.8 out of 5</td></tr></table></body></html></message>

Everything after the table no longer shows until I restart OpenFire.