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

URLs inside xwiki/2.0 link labels are rendered as anchors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.7.1, 1.8 M1
    • {Unused} Rendering 2.0
    • None
    • any
    • link label anchor url

    Description

      The following wiki syntax:

      [[http://xwiki.org>>http://xwiki.org]]
      

      generates:

      <!--startwikilink:http://xwiki.org-->
      <span class="wikiexternallink">
         <a href="http://xwiki.org">
           <!--startwikilink:http://xwiki.org-->
           <span class="wikiexternallink">
             <a class="wikimodel-freestanding" href="http://xwiki.org">
               <span class="wikigeneratedlinkcontent">http://xwiki.org</span>
             </a>
           </span>
           <!--stopwikilink-->
         </a>
      </span>
      <!--stopwikilink-->
      

      The problem is of course the fact that xwiki/2.0 link labels support inline wiki syntax, including other links apparently.

      From xhtml/1.0 strict DTD:

      <!ELEMENT a %a.content;>
      <!ENTITY % a.content
          "(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | 
      %misc.inline;)*">
      

      Thus an anchor must not contain another anchor.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: