On Mon, Aug 27, 2012 at 4:37 PM, Mark Holmquist <mtrac...@member.fsf.org> wrote: > I also tried to get an answer about the better between $( '<div > class="a-class" />' ) and $( '<div />' ).addClass( 'a-class' ), but > apparently there's little difference. At least when creating dynamic > interfaces, I'd like to have some guidance and consistency if anyone is > interested in chatting about it.
I'm going to try and put some guidelines for secure javascript code together soon, but it's a much better habit to use .addClass( 'a-class' ) and the other functions to add attributes. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l