The result of parsing by html5lib for the following fragment is not compatible with the specification. <table><li><li></li></table> It is parsed into the following DOM tree. <pre> <li> <table> <li> </pre> It should be parse as the following DOM tree. <pre> <li> <li> <table> </pre>