Ticket #7133 (closed bug: invalid)
Adding an array to html() causes an error
|Reported by:||Motty||Owned by:|
I know this is not the intended purpose of .html(), but I think it needs to at least not crash when the function is presented with an array. Using .text() will fail gracefully, but not .html().
I posted a demo of it here ( http://jsfiddle.net/fqsSa/)
var testing = ['hello','world']; $('#test').html(testing);