Add namespace attribute to XHTML-IM body tags

Fixes SMACK-531
This commit is contained in:
Florian Schmaus 2014-02-10 13:51:12 +01:00
parent 4bc7ce052d
commit 7ba3c3d43f
1 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@ import org.jivesoftware.smack.util.StringUtils;
*/
public class XHTMLText {
private static final String NAMESPACE = "http://www.w3.org/1999/xhtml";
private StringBuilder text = new StringBuilder(30);
/**
@ -100,7 +102,7 @@ public class XHTMLText {
* @param lang the language of the body
*/
private void appendOpenBodyTag(String style, String lang) {
StringBuilder sb = new StringBuilder("<body");
StringBuilder sb = new StringBuilder("<body xmlns=\"" + NAMESPACE + "\"");
if (style != null) {
sb.append(" style=\"");
sb.append(style);