Bug Tracker

Opened 15 years ago

Closed 14 years ago

#3954 closed bug (invalid)

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

Description

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

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 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 15 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 15 years ago by AlbertVanHalen

Attachment: test.html added

comment:3 Changed 15 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 14 years ago by dmethvin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.