Changeset 11947
- Timestamp:
- 01/03/08 22:26:35 (12 months ago)
- Location:
- dijit/trunk
- Files:
-
- 2 modified
-
form/ComboBox.js (modified) (2 diffs)
-
tests/form/test_FilteringSelect.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/form/ComboBox.js
r11942 r11947 715 715 // FilteringSelect 716 716 717 var labelObject =labelFunc(item);717 var labelObject = labelFunc(item); 718 718 var menuitem = document.createElement("div"); 719 719 if(labelObject.html){ … … 968 968 /* attribute-name-string */ attribute, 969 969 /* value? */ defaultValue){ 970 return attribute == "value" ? item.value : item.innerHTML;970 return (attribute == "value") ? item.value : (item.innerText || item.textContent); 971 971 }, 972 972 -
dijit/trunk/tests/form/test_FilteringSelect.html
r11942 r11947 253 253 <br> 254 254 <hr> 255 <p>FilteringSelect #12: special characters</p> 256 <p>The drop down list should be:</p> 257 <ul> 258 <li>sticks & stones 259 <li>rags --> riches 260 </ul> 261 <label for="filter12">Special chars:</label> 262 <select dojoType="dijit.form.FilteringSelect" 263 name="filter12" 264 id="filter12" 265 > 266 <option value="sticks" selected>sticks & stones</option> 267 <option value="rags">rags --> riches</option> 268 </select> 269 <br> 270 <hr> 255 271 <input type="submit"> 256 272 </form>