Bug Tracker

Opened 11 years ago

Closed 11 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 )
 };

Change History (1)

comment:1 Changed 11 years ago by flesler

Resolution: duplicate
Status: newclosed

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.

Note: See TracTickets for help on using tickets.