The three test cases attached are identical except for the DOCTYPE. They contain content similar to: <p> some text <div> some more text </div> ...which should be interpreted as: <p> some text </p> <div> some more text </div> ...since end tags on <p> are optional in the SGML version of HTML4. (i.e., not in XHTML.) Currently, it would seem that the strict (and transitional?) DTDs are not taking the fact that "</p>" is optional into account, and are doing strange things to the DIV (like not including it or something).
Fix in hand. Marking dup of 42312. *** This bug has been marked as a duplicate of 42312 ***