Sergiu Dumitriu wrote:
> Thomas Mortagne wrote:
>> Hi devs,
>>
>> We have (at least) two issues about links inside links:
>> http://jira.xwiki.org/jira/browse/XWIKI-3149 and
>> http://jira.xwiki.org/jira/browse/XWIKI-3440
>>
>> Basically the issue is that XHTML does not support links inside links.
>>
>> To fix this I see two possibilities:
>> 1) valid in XDOM: this means XHTML renderer has to take care of this
>> and skip link inside links
>> 2) not valid in XDOM: this means each parser has to make sure not put
>> link inside links in the XDOM
>>
>> +1 for 1) and -0 for 2) since it's a XHTML issue only and we could
>> have some use cases supporting this like XWiki syntax support it.
> 
> XHTML 2 supports nested links, and I think that HTML5 also, although I 
> couldn't find this specified explicitly. So +1 for 1.

+1 for 1) also. I think the XHTML 1.0 renderer should render only the 
content of nested anchors and not the anchors themselfs, keeping the 
styles though (or maybe all the attributes besides href?):

<a>before <a class="foo" style="bar">text</a> after</a>

should be rendered IMO as:

<a>before <span class="foo" style="bar">text</span> after</a>

Thanks,
Marius
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to