Bug with new HTML Creation Syntax?

Bug with new HTML Creation Syntax?


$("<table />", {id: "someId1"}) //this works great

$("<table cellpadding=\"0\" cellspacing=\"0\" />").attr("id", "someId2") //this works as it always did, but...

$("<table cellpadding=\"0\" cellspacing=\"0\" />", {id: "someId3"}) //boom!


I'm not sure if that's intended behavior or not, but it seems like the third line should work.