Fix bug in text field automatic capitalization attribute
Fix values of text field autocorrect and autocapitalize

According to:

https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html

The new values for 'autocorrect' are "off" and "on", and the values for
'autocapitalize' are "none" and "sentences".
Add more fine-grained control over automatic capitalization

Change 'autocapitalize' attr to accept a string instead of a boolean, so that
the values "words" and "characters" can be used. Retains backwards-
compatibility for boolean values.
Add support for text field 'pattern' attribute
Add support for text field 'autoComplete' attribute