I know that it is not allowed to nest div in li in HTML5, although you can and it works. Does that mean I shoudn't use it? What is the standard about nesting divs in dls?
解决方案
First of all - your information is wrong. div elements are very well allowed inside li elements. You might have confused it with ul/ol elements, which may only contain lis accordingly.
What has changed in HTML5 is, that it does not have block-level and inline elements anymore. Instead there is a more complex distinction of the elements into several categories.
To see what is allowed inside an element according to HTML5, see the element description of the specific tag (in your case li) where you can see, that flow content is allowed (which means you can put pretty much everything there - of course also div elements).