Index: parserTests.txt
===================================================================
--- parserTests.txt	(revision 21866)
+++ parserTests.txt	(working copy)
@@ -3650,7 +3650,22 @@
 </p>
 !! end
 
+!! test
+<div> into a list (bug 9996)
+!! input
+*Some enumeration<div style="clear: both; color: red">
+This text should be red
+</div>
+!! result
+<ul><li>Some enumeration
+</li></ul>
+<div style="clear: both; color: red">
+<p>This text should be red
+</p>
+</div>
+!! end
 
+
 ###
 ### Media links
 ###
