You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what the upgrade guide should say though (I really don't understand the scope or the reason why #1835 resulted in this change). It did affect my upgrade of some code (unexpectedly)... and I had reviewed the upgrade guide specifically looking for breaking changes before upgrading.
Maybe something like "document fragment of a single TABLE element will no longer have a TBODY created automatically"?
The text was updated successfully, but these errors were encountered:
per: JQuery 3.1.1 vs 2.2.4 change in behavior appending rows to a table jquery/jquery#3976
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).
Apparently the fix for jquery/jquery#1835 in 3.0.0 is why.
Not sure what the upgrade guide should say though (I really don't understand the scope or the reason why #1835 resulted in this change). It did affect my upgrade of some code (unexpectedly)... and I had reviewed the upgrade guide specifically looking for breaking changes before upgrading.
Maybe something like "document fragment of a single TABLE element will no longer have a TBODY created automatically"?
The text was updated successfully, but these errors were encountered: