Bug Tracker

Modify

Ticket #3954 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

Attribute selector in IE (at least)

Reported by: AlbertVanHalen Owned by:
Priority: major Milestone: 1.3.2
Component: unfiled Version: 1.3.1
Keywords: attributeEquals Cc:
Blocking: Blocked by:

Description

Using [name='foo'] gives no results. Using [name = 'foo'] gives correct results.

Attachments

test.html Download (740 bytes) - added by AlbertVanHalen 4 years ago.

Change History

comment:1 Changed 4 years ago by dz

Works for me at of 1.3.1:

 http://media.nodnod.net/jquery/3954.html

Can you provide a different test case?

comment:2 Changed 4 years ago by AlbertVanHalen

It happens when an invalid attribute is set in an element. IE name in a div.

<input name="foo" /> <div name="foo"><div>

[name='foo'] will have 1 element [name = 'foo'] will have 2 elements

Tested in IE7 and IE8 Beta 2

Changed 4 years ago by AlbertVanHalen

comment:3 Changed 4 years ago by AlbertVanHalen

Never mind. There something weird here.

If I access the document (test.html) via the webserver it goes wrong. If I access the local document (via  file://) it goes OK.

Can I/you delete the ticket???

comment:4 Changed 4 years ago by dmethvin

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

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.