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

Error while parsing nested <span> elements with styles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.8 M2
    • {Unused} Rendering 2.0
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: