You can clone with
HTTPS or Subversion.
Using the jquery wrapper fails in IE8. The issue is this line:
var template = $(elm).html().trim();
.trim() fails because it looks like the returned object (String) does not have a trim method under IE8.
I created the following test case in jsFiddler: http://jsfiddle.net/MzgBm/3/