1.9: Fixes #13200 - innerHTML in buildFragment need end tags

Thus by reverting 9ae6b1a019553e95a6205d5c42ff7fa25e7a482e :-(

/cc @dmethvin