Skip to content
This repository

valid XHTML #25

Merged
merged 1 commit into from over 2 years ago

2 participants

berwinter Alex Ehlke
berwinter

closed input's to be valid XHTML

Alex Ehlke aehlke merged commit 21fda6e into from August 31, 2011
Alex Ehlke aehlke closed this August 31, 2011
Alex Ehlke
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 26, 2011
berwinter closed input's to be valid XHTML 7bb6305
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  js/tag-it.js
6  js/tag-it.js
@@ -96,7 +96,7 @@
96 96
                 this.tagList = this.element.find('ul, ol').andSelf().last();
97 97
             }
98 98
 
99  
-            this._tagInput = $('<input type="text">').addClass('ui-widget-content');
  99
+            this._tagInput = $('<input type="text" />').addClass('ui-widget-content');
100 100
             if (this.options.tabIndex) {
101 101
                 this._tagInput.attr('tabindex', this.options.tabIndex);
102 102
             }
@@ -148,7 +148,7 @@
148 148
                     });
149 149
                 } else {
150 150
                     // Create our single field input after our list.
151  
-                    this.options.singleFieldNode = this.tagList.after('<input type="hidden" style="display:none;" value="" name="' + this.options.fieldName + '">');
  151
+                    this.options.singleFieldNode = this.tagList.after('<input type="hidden" style="display:none;" value="" name="' + this.options.fieldName + '" />');
152 152
                 }
153 153
             }
154 154
 
@@ -331,7 +331,7 @@
331 331
                 this._updateSingleTagsField(tags);
332 332
             } else {
333 333
                 var escapedValue = label.html();
334  
-                tag.append('<input type="hidden" style="display:none;" value="' + escapedValue + '" name="' + this.options.itemName + '[' + this.options.fieldName + '][]">');
  334
+                tag.append('<input type="hidden" style="display:none;" value="' + escapedValue + '" name="' + this.options.itemName + '[' + this.options.fieldName + '][]" />');
335 335
             }
336 336
 
337 337
             this._trigger('onTagAdded', null, tag);
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.