Open mrcoles opened 8 months ago
With mjml==0.10.0 I get the following unexpected results when passing in an mj-body tag inside mj-attributes within mj-head. Also, if I try this on the MJML test page the body properly gets a background color.
mj-body
mj-attributes
mj-head
mjml_to_html('''<mjml> <mj-head> <mj-attributes> <mj-body background-color="#F6F6F6" /> </mj-attributes> </mj-head> <mj-body> <mj-text> TESTTESTTESTTESTTESTTESTTEST </mj-text> </mj-body> </mjml>''')
Result has no content inside body:
{"html": "<!doctype html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\">\n \n \n \n \n \n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n \n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <style type=\"text/css\">\n #outlook a { padding:0; }\n body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; }\n table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; }\n img { border:0;height:auto;line-height:100%; outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; }\n p { display:block;margin:13px 0; }\n \n \n \n \n \n <style type=\"text/css\">\n\n \n \n \n <style type=\"text/css\">\n \n \n <body style=\"word-spacing:normal;\">\n \n <div style=\"\">
{"html": "<!doctype html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\">\n
\n
With mjml==0.10.0 I get the following unexpected results when passing in an
mj-body
tag insidemj-attributes
withinmj-head
. Also, if I try this on the MJML test page the body properly gets a background color.Call with mj-body
Result has no content inside body: