diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html
--- a/kallithea/templates/base/base.html
+++ b/kallithea/templates/base/base.html
@@ -271,7 +271,7 @@
});
} else if (context == 'changelog') {
if (e.choice.type == 'tag' || e.choice.type == 'book') {
- $("#branch_filter").append($('').val(e.choice.text));
+ $("#branch_filter").append($('<'+'option/>').val(e.choice.text));
}
$("#branch_filter").val(e.choice.text).change();
} else {
diff --git a/kallithea/templates/pullrequests/pullrequest.html b/kallithea/templates/pullrequests/pullrequest.html
--- a/kallithea/templates/pullrequests/pullrequest.html
+++ b/kallithea/templates/pullrequests/pullrequest.html
@@ -134,7 +134,7 @@ ${self.repo_context_bar('showpullrequest
var length = options.length;
for(var j = 0; j < length; j++)
{
- $optgroup.append($('').text(options[j][1]).val(options[j][0]));
+ $optgroup.append($('<'+'option/>').text(options[j][1]).val(options[j][0]));
}
$other_ref.append($optgroup);
}