Skip to main content

Bug Tracker

Side navigation

#3086 closed bug (duplicate)

Opened June 25, 2008 10:10AM UTC

Closed June 30, 2008 03:06PM UTC

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 )
 };
Attachments (0)
Change History (1)

Changed June 30, 2008 03:06PM UTC by flesler comment:1

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.