Export to GitHub

gwtwiki - issue #118

add implicit <ul> if parsing encountered <li> tags without ol or ul


Posted on Oct 24, 2012 by Swift Lion

What steps will reproduce the problem? add this test to BasicFilterTest: public void testLiNoUl01() { assertEquals("\n" + "<ul><li>test1</li>\n<li>test2</li></ul>", wikiModel.render("<li>test1\n<li>test2", false)); } (maybe add newlines after/before <ul>/</ul> depending on the implementation)

What is the expected output? What do you see instead? MediaWiki surrounds all <li> elements with an implicit <ul>

Comment #1

Posted on Oct 25, 2012 by Happy Dog

Commited r7519 Please check if this is ok for you.

Comment #2

Posted on Oct 26, 2012 by Swift Lion

yes, thank you (I also ported it to 3.1 in r7583)

Status: Fixed

Labels:
Type-Defect Priority-Medium