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

Formatted text in link label is not parsed correctly from xhtml

    XMLWordPrintable

Details

    • Unit

    Description

      failing rendering test:

      .input|xhtml/1.0
      .#-----------------------------------------------------
      <html><p>a<em /><!--startwikilink:Main.WebHome--><span class="wikilink"><a href="/xwiki/bin/view/Main/"><em>b</em>b</a></span><!--stopwikilink-->c</p></html>
      .#-----------------------------------------------------
      .expect|xwiki
      .#-----------------------------------------------------
      a[[//b//b>>Main.WebHome]]c
      .#-----------------------------------------------------
      

      It is the same for <strong> text, and for various placements of the formatted text inside the label. However, there are situations which are parsed correctly, such as:

      .input|xhtml/1.0
      .#-----------------------------------------------------
      <html><p>a<em /><!--startwikilink:Main.WebHome--><span class="wikilink"><a href="/xwiki/bin/view/Main/">b<em>b</em></a></span><!--stopwikilink-->c</p></html>
      .#-----------------------------------------------------
      .expect|xwiki
      .#-----------------------------------------------------
      a[[b//b//>>Main.WebHome]]c
      .#-----------------------------------------------------
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: