-
26 Jan 2012 2:18 PM #1
placeHolder broken when value contains double quote
placeHolder broken when value contains double quote
Sencha Touch version tested:
- 1.1.1
- only default ext-all.css
- Chrome
- iOS 5
- Any placeHolder attribute that contains a double quote will be truncated beyond the first double quote.
- See this URL: http://bcoffield.dyndns.org/sencha/b...der/index.html
- Observe the problem and see that the expected results diverge from the actual results (see below for expected and actual). Code to reproduce the bug is at http://bcoffield.dyndns.org/sencha/b...holder/main.js
- placeHolder text should be: Search for "a value"
- placeHolder text was: Search for
- N/A
- The HTML5 placeholder attribute is cut off at the first double quote, leaving the attribute value incomplete.
- 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>',
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote