Fixes #13200 - innerHTML in buildFragment need end tags