neurosynth wrote:
Apparently this default behavior can be controlled from both sides:
http://www.quora.com/Why-is-the-first-l ... es-its-notAh, I see. Okay, that site says:
Quote:
Mobile Safari supports the autocapitalize attribute for form and input elements. By default this attribute is set to "on".
To prevent autocapitalization, reference the following line of code.
Code:
<input type="email" autocapitalize="off" />
I researched this a bit as I was not too familiar with it (we don't use it here). So, the "autocapitalize" feature is not standard HTML/XHTML (i.e. it does not conform to W3C standards); it's not a
valid attribute for the "input" tag. Apple's developer documentation
indicates that it's an "Apple Extension." The fact that autocapitalize is set to "on" by default seems nuts to me. I can't imagine wanting that to be the default behaviour!! Do you think it makes things easier for people typing on touchscreens? I hate touchscreens and never use them (don't have a smartphone, don't want one) so I really have no concept of what it's like to spend any significant time on Ignatzmice using an iPhone, iPad or whatever else.
I could easily just change some templates to include the extra "autocapitalize" attribute set to "off." I choose not to because it would mean the pages I change would no longer pass the W3C validator (I took great pains to bring as many pages up to compliance as I could when I created the new phpBB3 templates to preserve the look of our old phpBB2 board). I take exception to Apple's approach here, nudging developers to deviate from the standard by introducing unexpected/undesirable behaviour like this when the developer chooses
not to implement Apple's proprietary, invalid markup.
Incidentally, Microsoft has long been vilified for doing this exact same thing, ignoring accepted standards and adding their own extensions to Internet Explorer, which rightly brought accusations of anti-competitive conduct. Apple, on the other hand, will probably be seen as "innovative."
Can you install a browser other than Safari on an iPad or an iPhone? If so, that's what I would recommend doing. I don't consider this a server side issue at all since the sole cause of it is Apple's broken implementation of HTML on their mobile devices. It's a client side issue and a slap in the face to those of us who attempt to write code/markup that works consistently well for the greatest number of people, by following the standards. Apple is the new Microsoft.