Opened 14 years ago
Closed 12 years ago
#3245 closed bug (fixed)
Can not select a form using the action attribute
Reported by: | mw44118 | Owned by: | flesler |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | selector | Version: | 1.2.6 |
Keywords: | selector form action attribute | Cc: | |
Blocked by: | Blocking: |
Description
I had a form like
<form action="xyz"> </form>
I tried to select it with
$("form[action='xyz']")
and I got back an empty set of nodes.
Attachments (2)
Change History (9)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Component: | core → selector |
---|---|
Owner: | set to flesler |
Status: | new → assigned |
This is related to another ticket... but I don't recall the number right now. We'll try to fix this for 1.3 (without hitting on perfomance).
comment:4 Changed 14 years ago by
This is actually a separate bug from 2747. To make this one consistent everywhere we only have to add 'action' into the list of attributes that are special to force them to be accessed using getAttribute('action'). Accessing Element.action (DOM level 0) pulls back a fully qualified domain in IE8 and FF. Attaching a patch.
comment:5 Changed 14 years ago by
So I was wrong. Something a little funky is going on. I'm attaching a complete test comparison for href, src, and action instead.
Changed 14 years ago by
Attachment: | special.html added |
---|
Test case for href, action, and src attributes.
comment:7 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
however $("form[action*='xyz']") does work...