Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aquamail misrenders HTML email output #52

Closed
ewxrjk opened this issue Dec 25, 2018 · 2 comments
Closed

Aquamail misrenders HTML email output #52

ewxrjk opened this issue Dec 25, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@ewxrjk
Copy link
Owner

@ewxrjk ewxrjk commented Dec 25, 2018

Appearance

@ewxrjk ewxrjk self-assigned this Dec 25, 2018
@ewxrjk ewxrjk added the interop label Dec 25, 2018
@ewxrjk
Copy link
Owner Author

@ewxrjk ewxrjk commented Dec 25, 2018

The HTML source code starts:

<html>
<head>
<title>Backup report (2018-12-25)</title>
<style type="text/css">
/* Copyright © 2011 Richard Kettlewell.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
body {
  color: black;
  background-color: white
}

https://www.w3.org/TR/html4/present/styles.html#edef-STYLE:

<!ELEMENT STYLE - - %StyleSheet        -- style info -->
<!ATTLIST STYLE
  %i18n;                               -- lang, dir, for use with title --
  type        %ContentType;  #REQUIRED -- content type of style language --
  media       %MediaDesc;    #IMPLIED  -- designed for use with these media --
  title       %Text;         #IMPLIED  -- advisory title --
  >

https://www.w3.org/TR/html4/sgml/dtd.html#StyleSheet:

<!ENTITY % StyleSheet "CDATA" -- style sheet data -->

https://www.w3.org/TR/html4/types.html#h-6.2:

The first occurrence of the character sequence "</" (end-tag open delimiter) is treated as terminating the end of the element's content. In valid documents, this would be the end tag for the element.

So it seems that Aquamail is interpreting /> as the end of the CDATA when it should only be interpreting </ as the delimiter.

All of the following render the message correctly:

  • Thunderbird 60.3.3
  • GMail as of 2018-12-25
  • Apple Mail 12.2
@ewxrjk
Copy link
Owner Author

@ewxrjk ewxrjk commented Dec 25, 2018

Reported as a bug in AquaMail at https://www.aqua-mail.com/forum/index.php?topic=7018.0.

@ewxrjk ewxrjk closed this Dec 25, 2018
@ewxrjk ewxrjk added this to the 6.0 milestone Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant