http://blog.fastmail.fm/2012/02/20/building-the-new-ajax-mai...
Used the CSS syntax to easily set class/id on a newly created tag.
Benchmarks included to show it's just as fast as innerHTML on modern browsers.