Thomas Mortagne wrote: > Hi xwikiers, > > Currently the syntaxes > > ** list item > > and > > * > ** list item > > are giving exactly the same rendering: > <ul><li><ul><li>list item</li></ul></li></ul> > > This is expected and we have even a unit test for that but I think > it's a wrong behavior. > > The "problem" is not really at rendering level but at wikimodel XWiki > parser which send the same events for the two syntaxes: > beginList > beginListItem > beginList > beginListItem > [...] > endListItem > endList > endListItem > endList > > I propose to change that for > > ** list item > > to render > > beginList > beginList > beginListItem > [...] > endListItem > endList > endList > > and > > <ul><ul><li>list item</li></ul></ul> > > and same concept for any other list level (like *** , **** , etc.). >
> Since XDOM and XHTML support it, here is my +1. What do you mean by "XHTML support it"? XHTML 1.0 strict DTD says: <!-- Unordered list --> <!ELEMENT ul (li)+> <!ATTLIST ul %attrs; > See http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_ul For me ** list item is not valid since you can't have a 2nd level list without a 1st level one. And even if you consider it valid, I don't see why you need to generate a different, invalid, XHTML for it. Thanks, Marius > > See also http://jira.xwiki.org/jira/browse/XWIKI-3057 > > Thanks, _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

