Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3494

Font tag is not cleaned properly

    XMLWordPrintable

Details

    • font tag cleaner
    • Unit

    Description

      The following HTML:

      <font size="5" face="Arial">foo</font>
      

      is cleaned into:

      <span style="font-family=Arial;font-size=5pt;">foo</span>
      

      Two things have to be fixed:

      • first, the CSS is well written:
        font-family:Arial;font-size:5pt;
      • second, the size attribute is not well translated into font-size CSS property:
        size="1" -> font-size:8pt
        size="2" -> font-size:10pt
        size="3" -> font-size:12pt
        size="4" -> font-size:14pt
        size="5" -> font-size:18pt
        size="6" -> font-size:24pt
        size="7" -> font-size:36pt
        

      Attachments

        Issue Links

          Activity

            People

              asiri Asiri Rathnayake
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: