h1, h2, ... h6 should auto-close p elements

h1, h2, ... h6 should auto-close p elements (among others, but p is what I need right now)

View http://jsfiddle.net/f9fvzxs0/ and check out resulting DOM in the Result box for an example of the browser's typical behavior.