add support for template repeat

it's identical with template element, but with template attribute it adds additional capabilities and should work more conveniently in cases like <td> and <option>

Review URL: https://chromiumcodereview.appspot.com//13592003