brianreavis/selectize.js — pull request #378 by rossshannon (2014-04-14 02:34:12+00:00)
Title: Reflect the values of autocorrect and autocapitalize attributes 

**Reflect the values of autocorrect and autocapitalize attributes in the control input, if they were set on the original input. With tests.**

iOS [supports two HTML attributes](https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html) on `` elements called “autocorrect” and “autocapitalize”.

``

They are particularly useful in stopping the OS from interfering with tagging interfaces, where many users prefer to keep all their tags in lowercase. At the moment, iOS will engage the Shift key on the virtual keyboard before a user starts typing into a selectized ``, capitalizing the first character typed.

This pull request simply checks for the presence of these attributes on the original `` element that selectize is called on, and attaches them to the generated control `` with the same values. I added a couple of tests for this too.

![titlecase_tags](https://cloud.githubusercontent.com/assets/4503044/2691329/30fa6662-c37c-11e3-8416-cf5c2f7f998e.png)