Bug Tracker

Modify

Ticket #8758 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

Finding element with autofocus attribute doesn’t work always

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

Description

attribute: autofocus
selector: :input[autofocus]
demo:  http://jsfiddle.net/nk4bn/
wrong result: FF3.6, FF3.5, IE6-IE9

attribute: autofocus
selector: input[autofocus]
demo:  http://jsfiddle.net/nk4bn/1/
wrong result: IE6, IE7

attribute: autofocus="autofocus"
selector: :input[autofocus]
demo:  http://jsfiddle.net/nk4bn/2/
wrong result: none

attribute: autofocus="autofocus"
selector: input[autofocus]
demo:  http://jsfiddle.net/nk4bn/3/
wrong result: none

jQuery doesn’t like/understand HTML5 boolean attributes?
 http://dev.w3.org/html5/spec/Overview.html#boolean-attribute

Change History

comment:1 Changed 2 years ago by timmywil

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

comment:2 Changed 2 years ago by timmywil

Duplicate of #5637.

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.