a1phanumeric
a1phanumeric

Reputation: 854

Disabling autocapitalize for a contenteditable div within a UIWebView

I have a UIWebView which loads a basic html page with a contenteditable div. This div has the following attributes:

<div id="editor" 
     contenteditable="true" 
     autocapitalize="none" 
     autocorrect="off" 
     autocomplete="off">#CONTENT#</div>

However, in iOS 5 and iOS 6, sentences are still being capitalized.

I've tried setting autocapitalize to off, but then set it to none as per the Safari HTML Reference, but still no joy.

Upvotes: 4

Views: 1049

Answers (1)

alex_izh
alex_izh

Reputation: 527

autocapitalize, autocorrect, autocomplete are supported input and form tags only. See Related Tags in the doc.

Upvotes: 2

Related Questions