Permalink
Browse files

closed input's to be valid XHTML

  • Loading branch information...
1 parent 440b9b7 commit 7bb63059e7baf4a814e9972ccf45b38c74c950ad @berwinter berwinter committed Aug 26, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/tag-it.js
View
6 js/tag-it.js
@@ -96,7 +96,7 @@
this.tagList = this.element.find('ul, ol').andSelf().last();
}
- this._tagInput = $('<input type="text">').addClass('ui-widget-content');
+ this._tagInput = $('<input type="text" />').addClass('ui-widget-content');
if (this.options.tabIndex) {
this._tagInput.attr('tabindex', this.options.tabIndex);
}
@@ -148,7 +148,7 @@
});
} else {
// Create our single field input after our list.
- this.options.singleFieldNode = this.tagList.after('<input type="hidden" style="display:none;" value="" name="' + this.options.fieldName + '">');
+ this.options.singleFieldNode = this.tagList.after('<input type="hidden" style="display:none;" value="" name="' + this.options.fieldName + '" />');
}
}
@@ -331,7 +331,7 @@
this._updateSingleTagsField(tags);
} else {
var escapedValue = label.html();
- tag.append('<input type="hidden" style="display:none;" value="' + escapedValue + '" name="' + this.options.itemName + '[' + this.options.fieldName + '][]">');
+ tag.append('<input type="hidden" style="display:none;" value="' + escapedValue + '" name="' + this.options.itemName + '[' + this.options.fieldName + '][]" />');
}
this._trigger('onTagAdded', null, tag);

0 comments on commit 7bb6305

Please sign in to comment.