Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit b180a31

Browse files
committed
Merge pull request #622 from 2is10/xhtml_compatibility
closing tags and using valid XML escape sequences to avoid JS errors on XHTML pages
2 parents b8607e1 + 3b20e00 commit b180a31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jquery.tokeninput.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var DEFAULT_SETTINGS = {
2828
hintText: "Type in a search term",
2929
noResultsText: "No results",
3030
searchingText: "Searching...",
31-
deleteText: "×",
31+
deleteText: "×",
3232
animateDropdown: true,
3333
placeholder: null,
3434
theme: null,
@@ -248,7 +248,7 @@ $.TokenList = function (input, url_or_data, settings) {
248248
var input_val;
249249

250250
// Create a new text input an attach keyup events
251-
var input_box = $("<input type=\"text\" autocomplete=\"off\" autocapitalize=\"off\">")
251+
var input_box = $("<input type=\"text\" autocomplete=\"off\" autocapitalize=\"off\"/>")
252252
.css({
253253
outline: "none"
254254
})
@@ -434,7 +434,7 @@ $.TokenList = function (input, url_or_data, settings) {
434434
.append(input_box);
435435

436436
// The list to store the dropdown items in
437-
var dropdown = $("<div>")
437+
var dropdown = $("<div/>")
438438
.addClass($(input).data("settings").classes.dropdown)
439439
.appendTo("body")
440440
.hide();
@@ -843,7 +843,7 @@ $.TokenList = function (input, url_or_data, settings) {
843843
function populate_dropdown (query, results) {
844844
if(results && results.length) {
845845
dropdown.empty();
846-
var dropdown_ul = $("<ul>")
846+
var dropdown_ul = $("<ul/>")
847847
.appendTo(dropdown)
848848
.mouseover(function (event) {
849849
select_dropdown_item($(event.target).closest("li"));

0 commit comments

Comments
 (0)