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

Error while parsing nested <span> elements with styles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.8 M2
    • Fix Version/s: None
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Similar issues:

      Description

      Consider the following rendering test case:

      .#-----------------------------------------------------
      .input|xhtml/1.0
      .#-----------------------------------------------------
      <span style="color:#cc0000;font-family=;font-size=pt;"><span style="color:;font-family=Arial, sans-serif;font-size=pt;"><span style="color:;font-family=;font-size=2pt;"><strong>REPUBLIC ACT NO. 7192</strong></span></span></span>
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      **(% style="color:;font-family=;font-size=2pt;" %)REPUBLIC ACT NO. 7192**
      

      This test case passes implying that only the inner most <span> block's styles are transferred into xwiki code.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              asiri Asiri Rathnayake
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: