Bug Tracker

Modify

Ticket #3086 (closed bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to duplicate

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.