Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8657 closed bug (invalid)

Not work under IE8

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.2rc1
Keywords: Cc:
Blocked by: Blocking:

Description

Hi, I try the jquery-1.5.2rc1.js with jquery-mobile in my project, under IE8.

found an exception when a call from jquery.mobile-1.0a4pre.js at line 1828:

$( window.document.activeElement ).add( "input:focus, textarea:focus, select:focus" ).blur();

and the exception throw from jquery-1.5.2rc1.js at line 4039:

	filter: {
		PSEUDO: function( elem, match, i, array ) {
			var name = match[1],
				filter = Expr.filters[ name ];

			if ( filter ) {
				return filter( elem, i, match, array );

			} else if ( name === "contains" ) {
				return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;

			} else if ( name === "not" ) {
				var not = match[3];

				for ( var j = 0, l = not.length; j < l; j++ ) {
					if ( not[j] === elem ) {
						return false;
					}
				}

				return true;

			} else {
				Sizzle.error( name ); <<========== line 
== 4039 ==

			}
		},

and from the IE internal debugger, the var name's value is 'focus'

is that jquery 1.5.2 not support 'focus'? can anyone give help?

Change History (2)

comment:1 Changed 12 years ago by ajpiano

Resolution: invalid
Status: newclosed

:focus is not a selector currently supported by jQuery core, though it is planned to be included in jQuery 1.6. I'm thinking this is more of a jQuery Mobile issue - can you open up a ticket on the jQuery Mobile issue queue? That would truly be excellent. Thanks for your time and interest in helping the jQuery project!

comment:2 Changed 12 years ago by anonymous

thanks ajpiano. i do open a issue to the jquery-mobile project

Note: See TracTickets for help on using tickets.