• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.7.0
    • 2.6.0
    • None
    • 4.4 M2

      Cannot inline CSS. Ignoring this rule and continuing.
      Location:	org.ametys.core.util.mail.SendMailHelper.inlineCSS(SendMailHelper.java:563)
      Thrown:
      org.jsoup.select.Selector$SelectorParseException: Could not parse query '': unexpected token at ''
      

      The exception is thrown at this line Elements selectedElements = doc.select(rule.getSelector()); 554 du SendMailHelper
      when calling parse() of QueryParser of jsoup

      Test In my project:
      When I put juste one style like : table.maclasse

      {background:red}

      I hav this error

      when I leave the css part empty i haven't got error

          [NEWSLETTER-319] Newsletter sending test

          Cannot not reproduce with given template.xsl file nor simple example.

          Some CSS rules are ignored because of :hover, :visited, :focus which are not supported. They should be removed.
          The rules in error are loggued in an error message but the newsletter is sent (CSS are just ignored)

          Laurence Aumeunier added a comment - Cannot not reproduce with given template.xsl file nor simple example. Some CSS rules are ignored because of :hover , :visited , :focus which are not supported. They should be removed. The rules in error are loggued in an error message but the newsletter is sent (CSS are just ignored)

          Raphaël Franchet added a comment - - edited
          <xsl:template match="/">
          		<html>
          			<head>
          					<style type="text/css">
          					table.fullwidth {color:red;}
          											
          					</style>
          			</head>
          			<body><table class="fullwidth">test</table></body>
          		</html>
          	</xsl:template>
          

          Raphaël Franchet added a comment - - edited < xsl:template match= "/" > <html> <head> <style type= "text/css" > table.fullwidth {color:red;} </style> </head> <body> <table class= "fullwidth" > test </table> </body> </html> </ xsl:template >

          Can you provide the files you used please?

          Raphaël Franchet added a comment - Can you provide the files you used please?

            lbouziat Léa Bouziat
            lbouziat Léa Bouziat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: