Fixes #13200 - innerHTML in buildFragment needed end tags