Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.7.1, 1.8 M1
-
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
- duplicates
-
XRENDERING-2 XHTML renderer should protect itself from link inside link from the XDOM
- Open
- is related to
-
XWIKI-4470 Link labels which are also standalone links are not correctly escaped
- Closed
- relates to
-
XWIKI-3162 XWiki syntax 2.0 renderer does not render properly a XDOM with a link in another link label
- Closed