[javascript] Creating a new DOM element from an HTML string using built-in DOM methods or Prototype

This will work too:

$('<li>').text('hello').appendTo('#mylist');

It feels more like a jquery way with the chained function calls.