[xwiki-devs] [VOTE] What do we do with links inside links ?
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. Thanks, -- Thomas Mortagne
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. -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Apr 14, 2009, at 3:34 PM, 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.
Seen that XHTML 2.0 will support HREF for all elements (see http://www.w3.org/TR/xhtml2/mod-hyperAttributes.ht ml#col_Hypertext) I agree that 1) is the best. +1 for 1). Thanks -Vincent
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
Four +1 and no negatives, will do it for 1.9RC1 On Tue, Apr 14, 2009 at 12:28, Thomas Mortagne <[email protected]> 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.
Thanks, -- Thomas Mortagne
-- Thomas Mortagne
participants (4)
-
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol