JQuery 3.1.1 vs 2.2.4 change in behavior appending rows to a table

JQuery 3.1.1 vs 2.2.4 change in behavior appending rows to a table

The following code:

$('<TABLE />').append('<TR><TD>1</TD></TR>').appendTo('BODY');

results in slightly different DOM structures.

Under 2.2.4 you get <TABLE><TBODY><TR>...

Under 3.1.1 you get <TABLE><TR>...

(one has a TBODY and one does not)

This causes problems if you later have selectors like #id TBODY TR (to get all the body rows, and no header rows).

I've reviewed the jQuery Core 3.0 Upgrade Guide and can't see anything that might be related.

So my question is... is this expected behaviour or a bug in JQuery?

(from stackoverflow question: https://stackoverflow.com/questions/48658605/jquery-3-1-1-vs-2-2-4-change-in-behavior-appending-rows-to-a-table)