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

Font tag is not cleaned properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1, 1.9 M1
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Environment:
      any
    • keywords:
      font tag cleaner
    • Tests:
      Unit
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: