Opened 15 years ago
Closed 15 years ago
#3086 closed bug (duplicate)
In NetFront Browser, can't get value of option element when value-attribute is not specified
Reported by: | ohkuma | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.3 |
Keywords: | NetFront | Cc: | |
Blocked by: | Blocking: |
Description
cause:
The following (L404, jquery-1.2.3.js):
// Get the specifc value for the option value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value;
In NetFront Browser, option.value seems to return only value-attribute, so it returns empty when value-attribute is not specified.
workaround:
// Get the specifc value for the option - value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value; + value = ((jQuery.browser.msie && !option.attributes.value.specified) || (jQuery.browser.netfront && option.value == '')) ? option.text : option.value; ... jQuery.browser = { version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1], safari: /webkit/.test( userAgent ), opera: /opera/.test( userAgent ), msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), - mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent ) + mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent ), + netfront: window.netfront != null || /netfront/.test( userAgent ) };
Note: See
TracTickets for help on using
tickets.
Same problem as in #3085. Add all the needed fixes, and if you make all the tests pass, then NetFront might become supported. I warn you, it's not likely to happen.
Please post your reply on #3085.