Glad you found a solution. And good investigative work :)
I wonder if jQuery is now first doing a .parseHTML on string inputs before appending. I seem to remember a blogpost indicating that using HTML strings in selections or append type methods would be deprecated (security concerns). They suggest using .parseHTML
first to return an array of HTMLElements first and the wrap that with jQuery.