Sencha Touch version tested:
  • 1.1.1
  • only default ext-all.css
Platform tested against:
  • Chrome
  • iOS 5
Description:
  • Any placeHolder attribute that contains a double quote will be truncated beyond the first double quote.
Test Case:
Steps to reproduce the problem:The result that was expected:
  • placeHolder text should be: Search for "a value"
The result that occurs instead:
  • placeHolder text was: Search for
Screenshot or Video:
  • N/A
Debugging already done:
  • The HTML5 placeholder attribute is cut off at the first double quote, leaving the attribute value incomplete.
Possible fix:
  • Modify renderTpl in Ext.form.Field to HTML encode placeHolder. So, modify this line in Field.js to include a :htmlEncode for placeHolder:
  • '<tpl if="placeHolder">placeholder="{placeHolder:htmlEncode}" </tpl>',