The code in executeInsertHorizontalRule creates an <hr> element of the wrong internal class. This makes it serialize incorrectly and has a number of other minor bad effects.
Created attachment 34946 [details] patch
http://trac.webkit.org/changeset/47349